Update bookwyrm-server.service

This commit is contained in:
Thomas 2023-11-10 15:51:54 +01:00 committed by GitHub
parent 98bb4300b6
commit 1880afaabf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,8 @@ PrivateTmp=yes
TemporaryFileSystem=/var /run /opt __INSTALL_DIR__ TemporaryFileSystem=/var /run /opt __INSTALL_DIR__
#PrivateUsers=true #PrivateUsers=true
PrivateDevices=true PrivateDevices=true
#BindReadOnlyPaths=__INSTALL_DIR__ BindReadOnlyPaths=__INSTALL_DIR__
#BindPaths=__INSTALL_DIR__/images __INSTALL_DIR__/static /var/run/postgresql BindPaths=__INSTALL_DIR__/images __INSTALL_DIR__/static /var/run/postgresql
LockPersonality=yes LockPersonality=yes
MemoryDenyWriteExecute=true MemoryDenyWriteExecute=true
PrivateMounts=true PrivateMounts=true
@ -31,11 +31,11 @@ ProtectControlGroups=true
RestrictRealtime=true RestrictRealtime=true
RestrictNamespaces=net RestrictNamespaces=net
NoNewPrivileges=yes #NoNewPrivileges=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK #RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
DevicePolicy=closed #DevicePolicy=closed
ProtectProc=invisible #ProtectProc=invisible
SystemCallArchitectures=native #SystemCallArchitectures=native
#SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged #SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged
# Denying access to capabilities that should not be relevant for webapps # Denying access to capabilities that should not be relevant for webapps