Closed bdrung closed 2 years ago
The manual already has the following in that section:
The complete list of environment variables that are preserved or removed,
as modified by global Defaults parameters in sudoers, is displayed when
sudo is run by root with the -V option. The list of environment
variables to remove varies based on the operating system sudo is running
on.```
I specifically chose not to list them all since the list in the manual would inevitably get out of sync with the code.
Thanks for pointing it out. Then this ticket is obsolete.
For future reference: That sentence is around in the middle of the "Command environment" section.
I tried to find documentation about the initial checkenv and keepenv. I only found following in the sudoers man page (in the "Command environment" section):
In contrast,
plugins/sudoers/env.c
specifies following:Please document all initial checkenv and keepenv variables in the man page or document in the man page how to get this list (e.g. by running
sudo -V
as root).