File harden_tinc.service.patch of Package tinc
Index: tinc-1.0.36/systemd/tinc.service.in
===================================================================
--- tinc-1.0.36.orig/systemd/tinc.service.in
+++ tinc-1.0.36/systemd/tinc.service.in
@@ -10,6 +10,19 @@ After=network.target
Wants=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
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true