diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-12-03 23:36:10 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-12-04 22:32:25 +0100 |
commit | ba9f0db08cca257d167a2e5900f350b50323d13f (patch) | |
tree | 731cf79b8b9923b908e23103c69849f704697129 /gnu/services | |
parent | 222222be63a30af67817c408ffc8b36b1dd836d2 (diff) | |
download | guix-ba9f0db08cca257d167a2e5900f350b50323d13f.tar guix-ba9f0db08cca257d167a2e5900f350b50323d13f.tar.gz |
services: tor: Make sure /var/lib is world-readable.
* gnu/services/networking.scm (tor-hidden-service-activation): Add
'chmod' call for /var/lib.
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/networking.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index bbb9053008..d672ecf687 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -467,6 +467,9 @@ HiddenServicePort ~a ~a~%" (chown "/var/lib/tor" (passwd:uid %user) (passwd:gid %user)) (chmod "/var/lib/tor" #o700) + ;; Make sure /var/lib is accessible to the 'tor' user. + (chmod "/var/lib" #o755) + (for-each initialize '#$(map hidden-service-name (tor-configuration-hidden-services config))))) |