]> granicus.if.org Git - sudo/commitdiff
noexec now replaces more than just execve()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 22 Jan 2004 19:18:50 +0000 (19:18 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 22 Jan 2004 19:18:50 +0000 (19:18 +0000)
sudoers.man.in
sudoers.pod

index d27ac0e0a2b1c3fc02daf8c8da3d393e94b3a2c3..a01e949243d3725b7c42ec932984b612c7723d54 100644 (file)
 .\" ========================================================================
 .\"
 .IX Title "SUDOERS @mansectform@"
-.TH SUDOERS @mansectform@ "January 21, 2004" "1.6.8" "MAINTENANCE COMMANDS"
+.TH SUDOERS @mansectform@ "January 22, 2004" "1.6.8" "MAINTENANCE COMMANDS"
 .SH "NAME"
 sudoers \- list of which users may execute what
 .SH "DESCRIPTION"
@@ -702,10 +702,10 @@ list that exists and is executable.  The default is the path to vi
 on your system.
 .IP "noexec_file" 12
 .IX Item "noexec_file"
-Path to a shared library containing a dummy version of the \fIexecve()\fR
-library function that just returns an error.  This is used to
-implement the \fInoexec\fR functionality on systems that support
-\&\f(CW\*(C`LD_PRELOAD\*(C'\fR or its equivalent.  Defaults to \fI@noexec_file@\fR.
+Path to a shared library containing dummy versions of the \fIexecv()\fR,
+\&\fIexecve()\fR and \fIfexecve()\fR library functions that just return an error.
+This is used to implement the \fInoexec\fR functionality on systems that
+support \f(CW\*(C`LD_PRELOAD\*(C'\fR or its equivalent.  Defaults to \fI@noexec_file@\fR.
 .PP
 \&\fBStrings that can be used in a boolean context\fR:
 .IP "lecture" 12
@@ -1289,25 +1289,25 @@ To tell whether or not \fBsudo\fR supports \fInoexec\fR, you can run
 the following as root:
 .PP
 .Vb 1
-\&    # sudo -V | grep "dummy execve"
+\&    # sudo -V | grep "dummy exec"
 .Ve
 .PP
-If this results in output beginning with:
+If the resulting output contains a line that begins with:
 .PP
 .Vb 1
-\&    File containing a dummy execve() function
+\&    File containing dummy exec functions
 .Ve
 .PP
-then \fBsudo\fR may be able to replace the standard library function
-\&\fIexecve()\fR with its own that simply returns an error.  Unfortunately,
-there is no foolproof way to know whether or not \fInoexec\fR will
-work at compile\-time.  \fINoexec\fR should work on SunOS, Solaris,
-*BSD, Linux, \s-1IRIX\s0, Tru64 \s-1UNIX\s0, MacOS X, and HP-UX 11.x.  It is known
-\&\fBnot\fR to work on \s-1AIX\s0 and UnixWare.  \fINoexec\fR is expected to work
-on most operating systems that support the \f(CW\*(C`LD_PRELOAD\*(C'\fR environment
-variable.  Check your operating system's manual pages for the dynamic
-linker (usually ld.so, ld.so.1, dyld, dld.sl, rld, or loader) to see if
-\&\f(CW\*(C`LD_PRELOAD\*(C'\fR is supported.
+then \fBsudo\fR may be able to replace the exec family of functions
+in the standard library with its own that simply return an error.
+Unfortunately, there is no foolproof way to know whether or not
+\&\fInoexec\fR will work at compile\-time.  \fINoexec\fR should work on
+SunOS, Solaris, *BSD, Linux, \s-1IRIX\s0, Tru64 \s-1UNIX\s0, MacOS X, and HP-UX
+11.x.  It is known \fBnot\fR to work on \s-1AIX\s0 and UnixWare.  \fINoexec\fR
+is expected to work on most operating systems that support the
+\&\f(CW\*(C`LD_PRELOAD\*(C'\fR environment variable.  Check your operating system's
+manual pages for the dynamic linker (usually ld.so, ld.so.1, dyld,
+dld.sl, rld, or loader) to see if \f(CW\*(C`LD_PRELOAD\*(C'\fR is supported.
 .PP
 To enable \fInoexec\fR for a command, use the \f(CW\*(C`NOEXEC\*(C'\fR tag as documented
 in the User Specification section above.  If you are unsure whether
index 9c7b1d99f5f5a094f15dccf4264dbe784823b928..c913905af7c330462ec7dc9588d0110e82816056 100644 (file)
@@ -596,10 +596,10 @@ on your system.
 
 =item noexec_file
 
-Path to a shared library containing a dummy version of the execve()
-library function that just returns an error.  This is used to
-implement the I<noexec> functionality on systems that support
-C<LD_PRELOAD> or its equivalent.  Defaults to F<@noexec_file@>.
+Path to a shared library containing dummy versions of the execv(),
+execve() and fexecve() library functions that just return an error.
+This is used to implement the I<noexec> functionality on systems that
+support C<LD_PRELOAD> or its equivalent.  Defaults to F<@noexec_file@>.
 
 =back
 
@@ -1157,22 +1157,22 @@ running under binary emulation are not affected.
 To tell whether or not B<sudo> supports I<noexec>, you can run
 the following as root:
 
-    # sudo -V | grep "dummy execve"
+    # sudo -V | grep "dummy exec"
 
-If this results in output beginning with:
+If the resulting output contains a line that begins with:
 
-    File containing a dummy execve() function
+    File containing dummy exec functions
 
-then B<sudo> may be able to replace the standard library function
-execve() with its own that simply returns an error.  Unfortunately,
-there is no foolproof way to know whether or not I<noexec> will
-work at compile-time.  I<Noexec> should work on SunOS, Solaris,
-*BSD, Linux, IRIX, Tru64 UNIX, MacOS X, and HP-UX 11.x.  It is known
-B<not> to work on AIX and UnixWare.  I<Noexec> is expected to work
-on most operating systems that support the C<LD_PRELOAD> environment
-variable.  Check your operating system's manual pages for the dynamic
-linker (usually ld.so, ld.so.1, dyld, dld.sl, rld, or loader) to see if
-C<LD_PRELOAD> is supported.
+then B<sudo> may be able to replace the exec family of functions
+in the standard library with its own that simply return an error.
+Unfortunately, there is no foolproof way to know whether or not
+I<noexec> will work at compile-time.  I<Noexec> should work on
+SunOS, Solaris, *BSD, Linux, IRIX, Tru64 UNIX, MacOS X, and HP-UX
+11.x.  It is known B<not> to work on AIX and UnixWare.  I<Noexec>
+is expected to work on most operating systems that support the
+C<LD_PRELOAD> environment variable.  Check your operating system's
+manual pages for the dynamic linker (usually ld.so, ld.so.1, dyld,
+dld.sl, rld, or loader) to see if C<LD_PRELOAD> is supported.
 
 To enable I<noexec> for a command, use the C<NOEXEC> tag as documented
 in the User Specification section above.  If you are unsure whether