From 25446ce2c8f328d9f8942aa98a45268404dd6654 Mon Sep 17 00:00:00 2001 From: hoek Date: Tue, 27 Apr 1999 03:56:10 +0000 Subject: [PATCH] Mention that set-id bits are not honoured for shell scripts and filesystems with the "nosuid" option. Mention that syscall tracing is disabled sometimes. PR: misc/11328 --- lib/libc/sys/execve.2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2 index c7a5d87be706..25aa4e733d15 100644 --- a/lib/libc/sys/execve.2 +++ b/lib/libc/sys/execve.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)execve.2 8.5 (Berkeley) 6/1/94 -.\" $Id$ +.\" $Id: execve.2,v 1.11 1998/01/11 21:43:38 alex Exp $ .\" .Dd June 1, 1994 .Dt EXECVE 2 @@ -143,6 +143,11 @@ These values may be used in changing the effective IDs later (see .Xr setuid 2 ) . .ne 1i .Pp +The set-ID bits are not honored if the respective file system has the +.Ar nosuid +option enabled or if the new process file is an interpreter file. Syscall +tracing is disabled if effective IDs are changed. +.Pp The new process also inherits the following attributes from the calling process: .Pp @@ -273,6 +278,8 @@ of a super-user as well. .Xr execl 3 , .Xr exit 3 , .Xr sysctl 3 , +.Xr mount 1 , +.Xr ktrace 1 , .Xr environ 7 .Sh HISTORY The