no_proxy environment dropped when calling synaptic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: update-manager
Using an up-to-date hardy (March 27, 2008) I'm finding that somewhere along the path from update-manager to synaptic, several proxy controlling environment variables are getting dropped. The process stack looks like:
361 ? Sl 0:19 /usr/bin/python2.5 /usr/bin/
3303 ? S 0:00 \_ /usr/bin/gksu --desktop /usr/share/
3304 ? Rs 0:46 \_ /usr/sbin/synaptic --hide-main-window --non-interactive --parent-window-id 153092100 -o Synaptic:
The relevant proxy environment variables for update-manager:
$ tr '\0' '\n' < /proc/361/environ | grep -i proxy
NO_PROXY=
http_proxy=http://
HTTPS_PROXY=http://
no_proxy=
And for gksu:
$ sudo bash -c "tr '\0' '\n' < /proc/3303/environ " | grep -i proxy
NO_PROXY=
http_proxy=http://
HTTPS_PROXY=http://
no_proxy=
and for synaptic:
$ sudo bash -c "tr '\0' '\n' < /proc/3304/environ " | grep -i proxy
http_proxy=http://
As you can see the NO_PROXY, no_proxy and HTTPS_PROXY variables are getting dropped.
Thanks for your bugreport.
The latest sudo does drops most environment variable for security reasons. I reassign this to sudo.