relocate tor socket out of /etc
authorJoey Hess <joeyh@joeyh.name>
Tue, 20 Dec 2016 20:01:10 +0000 (16:01 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 20 Dec 2016 20:24:46 +0000 (16:24 -0400)
commit944a6503b9f6e5a1090d278748e5fa99efd45ad9
tree673990255f9fb3c5298b2ecc19380bd0fbebbf62
parent477aa442096c8ced0a98e06e9da2f2f8d1acbc32
relocate tor socket out of /etc

weasel explained that apparmor limits on what files tor can read do not
apply to sockets (because they're not files). And apparently the
problems I was seeing with hidden services not being accessible had to
do with onion address propigation and not the location of the socket
file.

remotedaemon looks up the HiddenServicePort in torrc, so if it was
previously configured with the socket in /etc, that will still work.

This commit was sponsored by Denis Dzyubenko on Patreon.
CHANGELOG
Command/EnableTor.hs
RemoteDaemon/Transport/Tor.hs
Utility/Tor.hs