lirc/harden_lircmd.service.patch
2023-05-22 09:34:46 +00:00

21 lines
715 B
Diff

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,15 @@ 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
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
Type=simple
ExecStart=/usr/sbin/lircmd --nodaemon
; user=lirc