Bugzilla – Bug 378
Patch for passthrough of complete proxy environment
Last modified: 2010-01-04 11:03:00 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.
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.