File harden_ratbagd.service.patch of Package libratbag
Index: libratbag-0.16/ratbagd/ratbagd.service.in
===================================================================
--- libratbag-0.16.orig/ratbagd/ratbagd.service.in
+++ libratbag-0.16/ratbagd/ratbagd.service.in
@@ -2,6 +2,17 @@
Description=Daemon to introspect and modify configurable mice
[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=dbus
BusName=org.freedesktop.ratbag1
ExecStart=@sbindir@/ratbagd