File harden_triggerhappy.service.patch of Package triggerhappy

Index: triggerhappy-release-0.5.0/systemd/triggerhappy.service
===================================================================
--- triggerhappy-release-0.5.0.orig/systemd/triggerhappy.service
+++ triggerhappy-release-0.5.0/systemd/triggerhappy.service
@@ -3,6 +3,17 @@ Description=triggerhappy global hotkey d
 After=local-fs.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 
 Type=notify
 ExecStart=/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
 
openSUSE Build Service is sponsored by