- Drop ProtectClock hardening, can cause issues if other device acceess is needed OBS-URL: https://build.opensuse.org/request/show/925447 OBS-URL: https://build.opensuse.org/package/show/hardware/ckb-next?expand=0&rev=26
25 lines
844 B
Diff
25 lines
844 B
Diff
Index: ckb-next-0.4.4/linux/systemd/ckb-next-daemon.service.in
|
|
===================================================================
|
|
--- ckb-next-0.4.4.orig/linux/systemd/ckb-next-daemon.service.in
|
|
+++ ckb-next-0.4.4/linux/systemd/ckb-next-daemon.service.in
|
|
@@ -5,6 +5,19 @@
|
|
Description=Corsair Keyboards and Mice Daemon
|
|
|
|
[Service]
|
|
+# added automatically, for details please see
|
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
+ProtectSystem=full
|
|
+ProtectHome=true
|
|
+ProtectHostname=true
|
|
+# Fixes https://github.com/ckb-next/ckb-next/issues/740
|
|
+DeviceAllow=char-usb_device rw
|
|
+DeviceAllow=/dev/uinput rw
|
|
+ProtectKernelTunables=true
|
|
+ProtectKernelLogs=true
|
|
+ProtectControlGroups=true
|
|
+RestrictRealtime=true
|
|
+# end of automatic additions
|
|
ExecStart=@CMAKE_INSTALL_LIBEXECDIR@/ckb-next-daemon
|
|
Restart=on-failure
|
|
|