Bug 378

Summary: Patch for passthrough of complete proxy environment
Product: Sudo Reporter: Torsten Spindler <torsten>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: low    
Priority: low    
Version: 1.7.2   
Hardware: PC   
OS: Linux   
Attachments: Patch for passing through proxy related environment variables.

Description Torsten Spindler 2009-12-02 04:06:11 MST
Created attachment 265 [details]
Patch for passing through proxy related environment variables.

sudo by default only takes the http_proxy variable from the users
environment, but the variables no_proxy, https_proxy and ftp_proxy are
used in more complex proxy environments as well. The attached patch
allows these variables to live in the sudo environment without need to
add them to /etc/sudoers env_keep. 

The patch provides consistency for proxy related variables.
Comment 1 Todd C. Miller 2010-01-04 11:03:00 MST
There is currently no "http_proxy" in the default env keep list, perhaps that was added by a vendor patch?

I think it is better to keep the sudo environment as minimal as possible and allow the local admin to add things via env_keep in sudoers.  In this case, the proxy settings could be used to alter the behavior of a program running under sudo.