mirror of
https://github.com/YunoHost-Apps/airsonic_ynh.git
synced 2024-09-03 18:06:14 +02:00
Update system config to latest version
This commit is contained in:
parent
b18357e9ca
commit
c4a729568b
1 changed files with 35 additions and 0 deletions
|
@ -20,5 +20,40 @@ ExecStart=/usr/bin/java \
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
|
||||
# See https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
||||
# for details
|
||||
DevicePolicy=closed
|
||||
DeviceAllow=char-alsa rw
|
||||
NoNewPrivileges=yes
|
||||
PrivateTmp=yes
|
||||
PrivateUsers=yes
|
||||
ProtectControlGroups=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectKernelTunables=yes
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
RestrictNamespaces=yes
|
||||
RestrictRealtime=yes
|
||||
SystemCallFilter=~@clock @debug @module @mount @obsolete @privileged @reboot @setuid @swap
|
||||
ReadWritePaths=/var/airsonic
|
||||
|
||||
# You can uncomment the following line if you're not using the jukebox
|
||||
# This will prevent airsonic from accessing any real (physical) devices
|
||||
#PrivateDevices=yes
|
||||
|
||||
# You can change the following line to `strict` instead of `full`
|
||||
# if you don't want airsonic to be able to
|
||||
# write anything on your filesystem outside of AIRSONIC_HOME.
|
||||
ProtectSystem=full
|
||||
|
||||
# You can uncomment the following line if you don't have any media
|
||||
# in /home/…. This will prevent airsonic from ever reading/writing anything there.
|
||||
#ProtectHome=true
|
||||
|
||||
# You can uncomment the following line if you're not using the OpenJDK.
|
||||
# This will prevent processes from having a memory zone that is both writeable
|
||||
# and executeable, making hacker's lifes a bit harder.
|
||||
#MemoryDenyWriteExecute=yes
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue