From: Todd C. Miller Date: Thu, 12 Jan 2012 16:35:56 +0000 (-0500) Subject: Make the env_reset descriptions consistent. X-Git-Tag: SUDO_1_7_9~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0d0b4a8fbbbfa74e93a0c2ed80413c4589d9f25;p=sudo Make the env_reset descriptions consistent. --HG-- branch : 1.7 --- diff --git a/sudo.pod b/sudo.pod index 555274cf2..76755d004 100644 --- a/sudo.pod +++ b/sudo.pod @@ -426,13 +426,14 @@ unreachable. B tries to be safe when executing external commands. -There are two distinct ways to deal with environment variables. -By default, the I I option is enabled. -This causes commands to be executed with a minimal environment -containing C, C, C, C, C, C -and C in addition to variables from the invoking process -permitted by the I and I I options. -There is effectively a whitelist for environment variables. +There are two distinct ways to deal with environment variables. By +default, the I I option is enabled. This causes +commands 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 +I options. This is effectively a whitelist for environment +variables. If, however, the I option is disabled in I, any variables not explicitly denied by the I and I diff --git a/sudoers.pod b/sudoers.pod index 5a84a40f3..156b1421e 100644 --- a/sudoers.pod +++ b/sudoers.pod @@ -683,14 +683,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 @@ -1204,7 +1207,7 @@ environment variable. =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