|
Bugzilla – Full Text Bug Listing |
| Summary: | Variables being removed from operating environment despite !env_reset | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | philburg2 |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | philburg2 |
| Priority: | low | ||
| Version: | 1.8.9 | ||
| Hardware: | IBM | ||
| OS: | AIX | ||
|
Description
philburg2
2014-10-03 09:21:09 MDT
By default, sudo uses a whitelist for environment variables when env_reset is enabled. When env_reset is disabled, a blacklist of potentially dangerous variables is used instead, which is contained in the env_delete list. FPATH is on that blacklist by default. You can see the contents of the list by running "sudo -V" as root. From the manual:
env_delete Environment variables to be removed from the user's
environment when the env_reset option is not in effect.
The argument may be a double-quoted, space-separated
list or a single value without double-quotes. The list
can be replaced, added to, deleted from, or disabled by
using the =, +=, -=, and ! operators respectively. The
default list of environment variables to remove is
displayed when sudo is run by root with the -V option.
Note that many operating systems will remove
potentially dangerous variables from the environment of
any setuid process (such as sudo).
|