From: Todd C. Miller Date: Fri, 2 Jun 2017 21:47:35 +0000 (-0600) Subject: devsearch is ignored on BSD, macOS and Solaris X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7526869d876bea9489804c414acaf27d7980a078;p=sudo devsearch is ignored on BSD, macOS and Solaris --- diff --git a/doc/sudo.conf.cat b/doc/sudo.conf.cat index 5fe43c3e1..048d3a30c 100644 --- a/doc/sudo.conf.cat +++ b/doc/sudo.conf.cat @@ -109,12 +109,17 @@ DDEESSCCRRIIPPTTIIOONN devsearch An ordered, colon-separated search path of directories to look in for device nodes. This is used when mapping the process's - tty device number to a device name. Sudo will _n_o_t recurse into + tty device number to a device name on systems that do not + provide such a mechanism. Sudo will _n_o_t recurse into subdirectories. If terminal devices may be located in a subdirectory of _/_d_e_v, that path must be explicitly listed in _d_e_v_s_e_a_r_c_h. The default value is: /dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev + This option is ignored on systems that support either the + ddeevvnnaammee() or __ttttyynnaammee__ddeevv() functions, for example BSD, macOS + and Solaris. + noexec The fully-qualified path to a shared library containing wrappers for the eexxeeccll(), eexxeeccllee(), eexxeeccllpp(), eexxeecctt(), eexxeeccvv(), eexxeeccvvee(), eexxeeccvvPP(), eexxeeccvvpp(), eexxeeccvvppee(), ffeexxeeccvvee(), ppooppeenn(), @@ -427,4 +432,4 @@ DDIISSCCLLAAIIMMEERR file distributed with ssuuddoo or https://www.sudo.ws/license.html for complete details. -Sudo 1.8.21 May 30, 2017 Sudo 1.8.21 +Sudo 1.8.21 June 2, 2017 Sudo 1.8.21 diff --git a/doc/sudo.conf.man.in b/doc/sudo.conf.man.in index 853f7ebf6..41aa4a789 100644 --- a/doc/sudo.conf.man.in +++ b/doc/sudo.conf.man.in @@ -16,7 +16,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.TH "SUDO.CONF" "5" "May 30, 2017" "Sudo @PACKAGE_VERSION@" "File Formats Manual" +.TH "SUDO.CONF" "5" "June 2, 2017" "Sudo @PACKAGE_VERSION@" "File Formats Manual" .nh .if n .ad l .SH "NAME" @@ -242,7 +242,8 @@ devsearch .br An ordered, colon-separated search path of directories to look in for device nodes. -This is used when mapping the process's tty device number to a device name. +This is used when mapping the process's tty device number to a device name +on systems that do not provide such a mechanism. Sudo will \fInot\fR recurse into subdirectories. @@ -252,6 +253,12 @@ that path must be explicitly listed in \fIdevsearch\fR. The default value is: \fR/dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev\fR +.sp +This option is ignored on systems that support either the +\fBdevname\fR() +or +\fB_ttyname_dev\fR() +functions, for example BSD, macOS and Solaris. .TP 10n noexec The fully-qualified path to a shared library containing wrappers diff --git a/doc/sudo.conf.mdoc.in b/doc/sudo.conf.mdoc.in index 013e3c03e..7d9e96f5a 100644 --- a/doc/sudo.conf.mdoc.in +++ b/doc/sudo.conf.mdoc.in @@ -14,7 +14,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 30, 2017 +.Dd June 2, 2017 .Dt SUDO.CONF @mansectform@ .Os Sudo @PACKAGE_VERSION@ .Sh NAME @@ -218,7 +218,8 @@ environment variable. .It devsearch An ordered, colon-separated search path of directories to look in for device nodes. -This is used when mapping the process's tty device number to a device name. +This is used when mapping the process's tty device number to a device name +on systems that do not provide such a mechanism. Sudo will .Em not recurse into subdirectories. @@ -228,6 +229,12 @@ that path must be explicitly listed in .Em devsearch . The default value is: .Li /dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev +.Pp +This option is ignored on systems that support either the +.Fn devname +or +.Fn _ttyname_dev +functions, for example BSD, macOS and Solaris. .It noexec The fully-qualified path to a shared library containing wrappers for the