summaryrefslogtreecommitdiff
path: root/app/xenodm/config/TakeConsole.in
diff options
context:
space:
mode:
Diffstat (limited to 'app/xenodm/config/TakeConsole.in')
-rw-r--r--app/xenodm/config/TakeConsole.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/xenodm/config/TakeConsole.in b/app/xenodm/config/TakeConsole.in
index 46fde4ea8..35300d734 100644
--- a/app/xenodm/config/TakeConsole.in
+++ b/app/xenodm/config/TakeConsole.in
@@ -1,17 +1,17 @@
#!/bin/sh
# Reassign ownership of the console to root, this should disallow
# assignment of console output to any random users's xterm
-# $OpenBSD: TakeConsole.in,v 1.2 2022/01/06 23:35:41 jsg Exp $
+# $OpenBSD: TakeConsole.in,v 1.3 2023/11/10 18:49:21 matthieu Exp $
#
prefix="@prefix@"
exec_prefix="@exec_prefix@"
-chown root /dev/console
+chown root:wheel /dev/console
chmod 622 /dev/console
if [ -c /dev/dri/card0 ]; then
- chown root /dev/dri/card0
+ chown root:wheel /dev/dri/card0
fi
if [ -c /dev/dri/renderD128 ]; then
- chown root /dev/dri/renderD128
+ chown root:wheel /dev/dri/renderD128
fi
@bindir@/sessreg -d -l $DISPLAY -u none $USER