Bug 378 - Patch for passthrough of complete proxy environment
Patch for passthrough of complete proxy environment
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.2
PC Linux
: low low
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-02 04:06 MST by Torsten Spindler
Modified: 2010-01-04 11:03 MST (History)
0 users

See Also:


Attachments
Patch for passing through proxy related environment variables. (244 bytes, patch)
2009-12-02 04:06 MST, Torsten Spindler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.