From ba9f0db08cca257d167a2e5900f350b50323d13f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sat, 3 Dec 2016 23:36:10 +0100
Subject: [PATCH] services: tor: Make sure /var/lib is world-readable.

* gnu/services/networking.scm (tor-hidden-service-activation): Add
'chmod' call for /var/lib.
---
 gnu/services/networking.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index bbb90530087..d672ecf6878 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -467,6 +467,9 @@ (define (initialize service)
       (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)))))
-- 
GitLab