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