mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-10 18:24:44 +00:00
Jail the whole thing a bit more
Add WorkingDirectory to create and use the certificates within /var/lib/syncthing-relaysrv. Add RootDirectory to chroot(2) the whole thing into that directory.
This commit is contained in:
parent
dc5627a2ef
commit
7e4f08c033
@ -6,6 +6,8 @@ After=network.target
|
|||||||
User=syncthing-relaysrv
|
User=syncthing-relaysrv
|
||||||
Group=syncthing-relaysrv
|
Group=syncthing-relaysrv
|
||||||
ExecStart=/usr/bin/syncthing-relaysrv
|
ExecStart=/usr/bin/syncthing-relaysrv
|
||||||
|
WorkingDirectory=/var/lib/syncthing-relaysrv
|
||||||
|
RootDirectory=/var/lib/syncthing-relaysrv
|
||||||
|
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
Loading…
Reference in New Issue
Block a user