summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-12-08 21:37:30 +0000
committerJames Le Cuirot <chewi@gentoo.org>2022-12-08 21:37:30 +0000
commit4c9535541920a5bc381834743b1fc0eaa8017477 (patch)
tree4639617b39f8d3302f1ed6ea80d7fabec6456a10 /games-util
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.226 (diff)
downloadgentoo-4c9535541920a5bc381834743b1fc0eaa8017477.tar.gz
gentoo-4c9535541920a5bc381834743b1fc0eaa8017477.tar.bz2
gentoo-4c9535541920a5bc381834743b1fc0eaa8017477.zip
games-util/joycond: Allow /dev/uinput in systemd unit
Closes: https://bugs.gentoo.org/867385 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-util')
-rw-r--r--games-util/joycond/files/joycond-systemd-paranoia.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/games-util/joycond/files/joycond-systemd-paranoia.patch b/games-util/joycond/files/joycond-systemd-paranoia.patch
index f6803d074f17..314b4824cda8 100644
--- a/games-util/joycond/files/joycond-systemd-paranoia.patch
+++ b/games-util/joycond/files/joycond-systemd-paranoia.patch
@@ -11,8 +11,8 @@ diff --git a/systemd/joycond.service b/systemd/joycond.service
index cc8e408..5a8b045 100644
--- a/systemd/joycond.service
+++ b/systemd/joycond.service
-@@ -4,12 +4,26 @@ After=network.target
-
+@@ -4,12 +4,27 @@ After=network.target
+
[Service]
ExecStart=/usr/bin/joycond
-WorkingDirectory=/root
@@ -21,6 +21,7 @@ index cc8e408..5a8b045 100644
Restart=always
-User=root
+
++DeviceAllow=/dev/uinput
+DeviceAllow=char-input
+DevicePolicy=closed
+LockPersonality=yes