mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'intrigeri/bug12751-systemd-filesystem-sandbox'
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
o Distribution:
|
||||
- systemd unit file: only allow tor to write to /var/lib/tor
|
||||
and /var/log/tor. The rest of the filesystem is accessible
|
||||
for reading only.
|
||||
Patch by intrigeri; resolves ticket 12751.
|
||||
Vendored
+3
@@ -19,6 +19,9 @@ PrivateTmp = yes
|
||||
DeviceAllow = /dev/null rw
|
||||
DeviceAllow = /dev/urandom r
|
||||
InaccessibleDirectories = /home
|
||||
ReadOnlyDirectories = /
|
||||
ReadWriteDirectories = @LOCALSTATEDIR@/lib/tor
|
||||
ReadWriteDirectories = @LOCALSTATEDIR@/log/tor
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user