services: tor: Make sure /var/lib is world-readable.

* gnu/services/networking.scm (tor-hidden-service-activation): Add
'chmod' call for /var/lib.
This commit is contained in:
Ludovic Courtès 2016-12-03 23:36:10 +01:00
parent 222222be63
commit ba9f0db08c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 0 deletions

View File

@ -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)))))