[tor-bugs] #18305 [Tor]: Tor fails to start with setgid

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Feb 12 22:20:15 UTC 2016


#18305: Tor fails to start with setgid
--------------------+-----------------------------------
 Reporter:  commoc  |          Owner:
     Type:  defect  |         Status:  needs_information
 Priority:  Medium  |      Milestone:
Component:  Tor     |        Version:
 Severity:  Normal  |     Resolution:
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
  Sponsor:          |
--------------------+-----------------------------------

Comment (by commoc):

 I don't have AppArmor.

 Using an out-of-the-box TorBrowser 5.0.7, I don't need to set
 LD_LIBRARY_PATH to start Tor directly, as seen below:

 user at debian:~/tor-browser_en-US-5.0.7/Browser/TorBrowser/Tor$ ./tor
 Feb 12 19:02:46.557 [notice] Tor v0.2.7.6 (git-7a489a6389110120) running
 on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1k and Zlib 1.2.8.
 Feb 12 19:02:46.557 [notice] Tor can't help you if you use it wrong! Learn
 how to be safe at https://www.torproject.org/download/download#warning
 Feb 12 19:02:46.557 [notice] Configuration file
 "/home/ubuntu/install/etc/tor/torrc" not present, using reasonable
 defaults.
 Feb 12 19:02:46.563 [notice] Opening Socks listener on 127.0.0.1:9050
 Feb 12 19:02:46.000 [notice] Bootstrapped 0%: Starting
 Feb 12 19:02:47.000 [notice] Bootstrapped 5%: Connecting to directory
 server

 It also works after performing my steps.

 But with an out-of-the-box TorBrowser 5.5, I need to set LD_LIBRARY_PATH
 before starting Tor directly (as seen in my comment:3).

 Since the Tor versions remained the same, I think the issue is caused by
 some change between Libevent 2.0.21 and 2.0.22. With this last version,
 apparently LD_LIBRARY_PATH is needed, and that's why Tor won't start with
 setgid.

 I'm not sure whether the Tor developers can do something about this.

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


More information about the tor-bugs mailing list