Bug 237 - env_keep does not work
env_keep does not work
Status: RESOLVED WONTFIX
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-25 13:35 MDT by nick mcfarlane
Modified: 2007-04-24 14:06 MDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nick mcfarlane 2007-03-25 13:35:09 MDT
env_keep does not work. i've tried all options of:
Defaults env_keep=*
and
Defaults env_keep="LD_LIBRARY_PATH"
and
Defaults env_keep+="..."

But if I compare env to sudo env, that variable is not present.

I also tried :
Defaults env_reset, env_keep=*
Since there seemed to be an earlier bug in this area. But no joy.
Comment 1 Todd C. Miller 2007-04-24 14:06:44 MDT
The problem is that your dynamic loader (ld-linux.so) removes those environment variables from the environment before sudo is even executed.