aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/networking.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-12-03 23:36:10 +0100
committerLudovic Courtès <ludo@gnu.org>2016-12-04 22:32:25 +0100
commitba9f0db08cca257d167a2e5900f350b50323d13f (patch)
tree731cf79b8b9923b908e23103c69849f704697129 /gnu/services/networking.scm
parent222222be63a30af67817c408ffc8b36b1dd836d2 (diff)
downloadguix-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/networking.scm')
-rw-r--r--gnu/services/networking.scm3
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)))))