File harden_lircd.service.patch of Package lirc
Index: lirc-0.10.2/systemd/lircd.service =================================================================== --- lirc-0.10.2.orig/systemd/lircd.service +++ lirc-0.10.2/systemd/lircd.service @@ -6,6 +6,16 @@ Wants=lircd-setup.service After=network.target lircd-setup.service [Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectHostname=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions +# Type=notify RuntimeDirectory=lirc ExecStart=/usr/sbin/lircd --nodaemon