Enable simple sandboxing in Bookwyrm systemd unit

This commit is contained in:
Reinout Meliesie 2025-03-04 18:09:13 +01:00
parent 4bba2eccca
commit 547697c231
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -24,6 +24,21 @@ with pkgs . kernelmaft ;
User=bookwyrm
Group=bookwyrm
ProtectSystem=strict
ProtectHome=tmpfs
PrivateTmp=disconnected
PrivateDevices=true
PrivateIPC=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=strict
RestrictNamespaces=true
LockPersonality=true
RestrictRealtime=true
RestrictSUIDSGID=true
'' ;
} ;
} ;