File harden_rollback.service.patch of Package rollback-helper

Index: rollback-helper-1.0+git20181218.5394d6e/systemd/rollback.service
===================================================================
--- rollback-helper-1.0+git20181218.5394d6e.orig/systemd/rollback.service
+++ rollback-helper-1.0+git20181218.5394d6e/systemd/rollback.service
@@ -7,6 +7,19 @@ Before=transactional-update.timer salt-m
 ConditionPathExists=/var/lib/rollback/check-registration
 
 [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=/usr/sbin/rollback-reset-registration
openSUSE Build Service is sponsored by