Bug 237

Summary: env_keep does not work
Product: Sudo Reporter: nick mcfarlane <nick.mcfarlane>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED WONTFIX    
Severity: normal CC: nick.mcfarlane
Priority: low    
Version: 1.6.8   
Hardware: PC   
OS: Linux   

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.