[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs