[tor-bugs] #5082 [Tor Client]: Tor cleans out environment before launching obfsproxy

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Feb 11 21:00:28 UTC 2012


#5082: Tor cleans out environment before launching obfsproxy
------------------------+---------------------------------------------------
 Reporter:  Sebastian   |          Owner:                    
     Type:  task        |         Status:  needs_review      
 Priority:  major       |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by arma):

 I think Tor should not fail to try launching obfsproxy just because it
 doesn't find HOME or PATH in its env. That's definitely a bug in Tor.

 Does obfsproxy actually need HOME or PATH? I guess there's a question of
 which one should try to reconstruct it if it isn't defined. But I think
 currently it doesn't, so maybe we don't need to answer that question yet.

 Is it dangerous to pass Tor's env vars to obfsproxy? I'm not sure. I think
 the benefits outweight the risks.

 You'll definitely want to change the sentence "We can do this only if the
 spec change to require HOME and PATH to be set is accepted" because it
 implies that you want to change the spec to require HOME and PATH to be
 set.

 I'd suggest a follow-up cleanup commit to get rid of the r, and change the
 function to return a void, clean up launch_managed_proxy() so it knows
 set_managed_proxy_environment() can't fail, etc.

 I have not evaluated the fiddly pointer arithmetic yet.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5082#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list