File harden_znc.service.patch of Package znc.18473
Index: znc-1.9.0/znc.service.in =================================================================== --- znc-1.9.0.orig/znc.service.in +++ znc-1.9.0/znc.service.in @@ -3,6 +3,19 @@ Description=ZNC, an advanced IRC bouncer After=network.target [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=@CMAKE_INSTALL_FULL_BINDIR@/znc -f --datadir=/var/lib/znc User=znc