File harden_lircmd.service.patch of Package lirc

Index: lirc-0.10.1/systemd/lircmd.service
===================================================================
--- lirc-0.10.1.orig/systemd/lircmd.service
+++ lirc-0.10.1/systemd/lircmd.service
@@ -5,6 +5,16 @@ Documentation=http://lirc.org/html/confi
 Description=Convert IR remotes button presses to mouse movements and clicks
 
 [Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions 
 Type=simple
 ExecStart=/usr/sbin/lircmd  --nodaemon
 ; user=lirc
openSUSE Build Service is sponsored by