[tor-bugs] #12064 [Tor]: Tor should be able to read all files it creates when Sandbox enabled.

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 21 02:14:04 UTC 2014


#12064: Tor should be able to read all files it creates when Sandbox enabled.
-----------------------+------------------------------------
 Reporter:  alphawolf  |          Owner:
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor        |        Version:  Tor: 0.2.5.4-alpha
 Keywords:  sandbox    |  Actual Points:
Parent ID:             |         Points:
-----------------------+------------------------------------
 After #12034 and #12041, I realized that there are probably a lot of files
 that tor creates that are not specifically allowed in the sandbox.  I've
 not tested all of these to make sure there is actually a bug, but these
 are the files listed in the [https://www.torproject.org/docs/tor-manual-
 dev.html.en torrc documentation] that I don't see mentioned in
 `sandbox_cfg_allow_open_filename_array()` or elsewhere in `src/or/main.c`.

 Part 1 (Stuff I have a patch for):
 {{{
 DataDirectory/status/entry-stats
 DataDirectory/status/exit-stats
 DataDirectory/status/buffer-stats
 DataDirectory/status/conn-stats
 }}}
 Part 2 (Marked obsolete in docs... patch not necessary?):
 {{{
 DataDirectory/cached-routers and cached-routers.new
 DataDirectory/bw_accounting
 }}}
 Part 3 (Stuff I'm unsure of):
 {{{
 DataDirectory/control_auth_cookie
 DataDirectory/approved-routers
 }}}
 Part 4 (Hidden Directory Files - tested, broken because unable to read
 private_key):
 {{{
 HiddenServiceDirectory/hostname
 HiddenServiceDirectory/private_key
 HiddenServiceDirectory/client_keys
 }}}

 A patch for part 1 is inbound (based off the fixes for the previous bugs).
 Someone else will need to write any patches for parts 2 - 4.

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


More information about the tor-bugs mailing list