From: Todd C. Miller Date: Wed, 23 Nov 2011 15:42:32 +0000 (-0500) Subject: Make the env_reset descriptions consistent. X-Git-Tag: SUDO_1_8_4~140^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e43b726e96ce2c53dcf60983f179037fcf116e29;p=sudo Make the env_reset descriptions consistent. --- diff --git a/doc/sudoers.pod b/doc/sudoers.pod index 8804455f9..71bb5d532 100644 --- a/doc/sudoers.pod +++ b/doc/sudoers.pod @@ -89,11 +89,11 @@ environment are inherited by the command to be run. There are two distinct ways I can deal with environment variables. By default, the I option is enabled. This causes commands -to be executed with a minimal environment containing C, -C, C, C, C, C, C and C in -addition to variables from the invoking process permitted by the -I and I options. This is effectively a whitelist -for environment variables. +to be executed with a minimal environment containing the C, +C, C, C, C, C, C, C +and C variables in addition to variables from the +invoking process permitted by the I and I +options. This is effectively a whitelist for environment variables. If, however, the I option is disabled, any variables not explicitly denied by the I and I options are @@ -123,6 +123,9 @@ and I are set based on the target user. On Linux and AIX systems the contents of F are also included. All other environment variables are removed. +Lastly, if the I option is defined, any variables present +in that file will be set to their specified values. + =head1 SUDOERS FILE FORMAT The I file is composed of two types of entries: aliases @@ -783,14 +786,17 @@ default. =item env_reset -If set, B will reset the environment to only contain the -LOGNAME, MAIL, SHELL, USER, USERNAME and the C variables. Any +If set, B will run the command in a minimal environment +containing the C, C, C, C, C, +C, C, C and C variables. Any variables in the caller's environment that match the C -and C lists are then added. The default contents of the -C and C lists are displayed when B is -run by root with the I<-V> option. If the I option -is set, its value will be used for the C environment variable. -This flag is I<@env_reset@> by default. +and C lists are then added, followed by any variables +present in the file specified by the I option (if any). +The default contents of the C and C lists are +displayed when B is run by root with the I<-V> option. If +the I option is set, its value will be used for the +C environment variable. This flag is I<@env_reset@> by +default. =item fast_glob @@ -1371,7 +1377,7 @@ B: =item env_file -The I options specifies the fully qualified path to a +The I option specifies the fully qualified path to a file containing variables to be set in the environment of the program being run. Entries in this file should either be of the form C or C. The value may