commit a05bc26da0271aa4d63745e7d59e2c38223ccc09
parent 149dfe098751652e65884dcebeb465c017bc1e1f
Author: ccx <ccx@te2000.cz>
Date: Fri, 22 Mar 2024 00:15:08 +0000
Ensure correct groups on device nodes on xorg startup
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/service_scripts/xorg/run b/service_scripts/xorg/run
@@ -60,6 +60,9 @@ ns_run_unshared data/root {
if { mount -o bind /dev/dri ./dev/dri }
if { mount -o bind /dev/input ./dev/input }
+ # fixup permissions
+ if { chgrp -R video ./dev/dri }
+ if { chgrp -R input ./dev/input }
if { cp -a /dev/tty0 ./dev/tty0 }
if { chmod 660 ./dev/tty0 }