22 lines
833 B
Diff
22 lines
833 B
Diff
|
diff -purN a/scripts/systemd/nut-monitor.service.in b/scripts/systemd/nut-monitor.service.in
|
||
|
--- a/scripts/systemd/nut-monitor.service.in 2023-10-07 16:06:44.000000000 +0200
|
||
|
+++ b/scripts/systemd/nut-monitor.service.in 2023-11-03 19:48:16.280004811 +0100
|
||
|
@@ -25,6 +25,17 @@ Wants=nut-server.service
|
||
|
PartOf=nut.target
|
||
|
|
||
|
[Service]
|
||
|
+# added automatically, for details please see
|
||
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||
|
+ProtectSystem=full
|
||
|
+ProtectHome=true
|
||
|
+ProtectHostname=true
|
||
|
+ProtectKernelTunables=true
|
||
|
+ProtectKernelModules=true
|
||
|
+ProtectKernelLogs=true
|
||
|
+ProtectControlGroups=true
|
||
|
+RestrictRealtime=true
|
||
|
+# end of automatic additions
|
||
|
EnvironmentFile=-@CONFPATH@/nut.conf
|
||
|
SyslogIdentifier=%N
|
||
|
ExecStartPre=-@SYSTEMD_TMPFILES_PROGRAM@ --create @systemdtmpfilesdir@/nut-common-tmpfiles.conf
|