[tor-bugs] #11325 [Tor]: RFE: Adhere to XDB base directory specification

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Oct 21 03:24:42 UTC 2014


#11325: RFE: Adhere to XDB base directory specification
----------------------------+---------------------------------------
     Reporter:  jamielinux  |      Owner:
         Type:  defect      |     Status:  new
     Priority:  minor       |  Milestone:  Tor: unspecified
    Component:  Tor         |    Version:  Tor: unspecified
   Resolution:              |   Keywords:  tor-client xdg-compliance
Actual Points:              |  Parent ID:
       Points:              |
----------------------------+---------------------------------------

Comment (by nickm):

 I talked about this a little on the #tor-dev IRC channel today.

 Probably, the best way to implement this in Tor is with a runtime option,
 with the compile-time option at most setting the default value.  We'd want
 to split DataDirectory into several options: KeysDirectory, LockDirectory,
 DataDirectory, CacheDirectory, and maybe a few more.  Then we could edit
 the users of "get_datadir_fname*()" to use one of these more specific
 functions.

 This would help not only with the XDG case, but with other cases too.

 I don't mind an *optional* dependency on libxdg-basedir, if it's cleanly
 implemented and doesn't have a history of bugs.

 One wrinkle to consider is interaction with our seccomp2 sandboxing code:
 we need to precompute all the paths that we will ever open at startup
 time.

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


More information about the tor-bugs mailing list