]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Tor: fix permissions of /var/ipfire/tor/torrc after installation
authorpeter.mueller@ipfire.org <peter.mueller@ipfire.org>
Tue, 29 Oct 2019 18:37:00 +0000 (18:37 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 29 Oct 2019 19:51:45 +0000 (19:51 +0000)
Fixes #12220

Reported-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/tor
src/paks/tor/install.sh

diff --git a/lfs/tor b/lfs/tor
index ea07f6ce2f017febbc4de032d592ceecc9218b50..178f84be925f6c2959544779da2d967325d16219 100644 (file)
--- a/lfs/tor
+++ b/lfs/tor
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = tor
-PAK_VER    = 43
+PAK_VER    = 44
 
 DEPS       = "libseccomp"
 
index 4d03531558c07db3757466baec25afe502e407ed..369b65f7188083b2a1eaacf39e0d36c30b5fc63d 100644 (file)
@@ -36,10 +36,10 @@ extract_files
 restore_backup ${NAME}
 
 # Adjust some folder permission for new UID/GID
-chown -R tor:tor /var/lib/tor /var/ipfire/tor
+chown -R tor:tor /var/lib/tor
+chown -R tor:nobody /var/ipfire/tor
 
-# Tor settings file needs to be writeable by nobody group for WebUI
-chown tor:nobody /var/ipfire/tor/settings
-chmod 664 /var/ipfire/tor/settings
+# Tor settings files needs to be writeable by nobody group for WebUI
+chmod 664 /var/ipfire/tor/{settings,torrc}
 
 start_service --background ${NAME}