In SECURITY NOTES, clarify that PATH may be overridden by the policy.

Bug #1014
This commit is contained in:
Todd C. Miller
2021-12-11 09:08:03 -07:00
parent c13b21c199
commit e66e1ca383
2 changed files with 8 additions and 10 deletions

View File

@@ -25,7 +25,7 @@
.nr BA @BAMAN@
.nr LC @LCMAN@
.nr PS @PSMAN@
.TH "SUDO" "@mansectsu@" "September 17, 2021" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
.TH "SUDO" "@mansectsu@" "December 11, 2021" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
.nh
.if n .ad l
.SH "NAME"
@@ -1034,11 +1034,10 @@ searching for a command in the user's
\fRPATH\fR
(if one or both are in the
\fRPATH\fR).
Note, however, that the actual
Depending on the security policy, the user's
\fRPATH\fR
environment variable is
\fInot\fR
modified and is passed unchanged to the program that
environment variable may be modified, replaced,
or passed unchanged to the program that
\fBsudo\fR
executes.
.PP

View File

@@ -24,7 +24,7 @@
.nr BA @BAMAN@
.nr LC @LCMAN@
.nr PS @PSMAN@
.Dd September 17, 2021
.Dd December 11, 2021
.Dt SUDO @mansectsu@
.Os Sudo @PACKAGE_VERSION@
.Sh NAME
@@ -975,11 +975,10 @@ searching for a command in the user's
.Ev PATH
(if one or both are in the
.Ev PATH ) .
Note, however, that the actual
Depending on the security policy, the user's
.Ev PATH
environment variable is
.Em not
modified and is passed unchanged to the program that
environment variable may be modified, replaced,
or passed unchanged to the program that
.Nm
executes.
.Pp