2023-11-07 13:09:59 +00:00
|
|
|
Index: sshguard-2.4.3/examples/sshguard.service
|
2021-12-28 13:39:05 +00:00
|
|
|
===================================================================
|
2023-11-07 13:09:59 +00:00
|
|
|
--- sshguard-2.4.3.orig/examples/sshguard.service
|
|
|
|
|
+++ sshguard-2.4.3/examples/sshguard.service
|
2021-12-28 13:39:05 +00:00
|
|
|
@@ -9,6 +9,19 @@ After=libvirtd.service
|
|
|
|
|
After=firewalld.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
|
|
|
|
|
ExecStartPre=-/usr/sbin/iptables -N sshguard
|
|
|
|
|
ExecStart=/usr/local/sbin/sshguard
|
|
|
|
|
Restart=always
|