[tbb-bugs] #20185 [Applications/Tor Browser]: Tor Browser alpha is broken on Linux (and probably OS X) if directory is nested too deep

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Sep 21 16:04:09 UTC 2016


#20185: Tor Browser alpha is broken on Linux (and probably OS X) if directory is
nested too deep
--------------------------------------+--------------------------
 Reporter:  gk                        |          Owner:  tbb-team
     Type:  defect                    |         Status:  new
 Priority:  High                      |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Major                     |     Resolution:
 Keywords:                            |  Actual Points:
Parent ID:  #14270                    |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+--------------------------

Comment (by mcs):

 Replying to [comment:2 cypherpunks]:
 > Please use $XDG_RUNTIME_DIR if it's set:

 Thank you for that suggestion. Here is a proposal for the control and
 SOCKS port Unix domain socket paths:

 1. The socket basenames will always be control.socket and socks.socket.
 2. If `$XDG_RUNTIME_DIR` is set, create a unique subdirectory within that
 directory and place the sockets there (this will allow more than one copy
 of Tor Browser to be used at the same time). Tor Launcher will use
 Mozilla's nsIFile.createUnique() function to create the subdirectory and
 it will be deleted during browser exit.
 3. If the length of the path `<tor-data-dir>/control.socket` is shorter
 than 100 bytes, use `<tor-data-dir>/control.socket` and `<tor-data-
 dir>/socks.socket` (compatible with TB 6.5a3's behavior).
 4. Otherwise, create a unique directory within `/tmp` (similar to the
 `$XDG_RUNTIME_DIR` scenario).

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


More information about the tbb-bugs mailing list