File harden_owntone.service.patch of Package owntone
Index: owntone-28.9/owntone.service.in =================================================================== --- owntone-28.9.orig/owntone.service.in +++ owntone-28.9/owntone.service.in @@ -7,6 +7,19 @@ Requires=network.target local-fs.target After=network-online.target sound.target remote-fs.target pulseaudio.service [Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +ProtectHome=true +PrivateDevices=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions ExecStart=@sbindir@/owntone -f # Constrain the upper limit of memory/swap that can be used; this prevents