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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user