2ping/harden_2ping.service.patch

16 lines
499 B
Diff

Index: 2ping-4.5.1/2ping.service
===================================================================
--- 2ping-4.5.1.orig/2ping.service
+++ 2ping-4.5.1/2ping.service
@@ -30,6 +30,10 @@ RestrictAddressFamilies=AF_NETLINK AF_IN
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectHostname=true
+# end of automatic additions
User=nobody
[Install]