diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-05-12 11:53:07 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-05-12 11:53:07 +0000 |
commit | b70ea8ab8313f0543b1b932fdbd674b4059284ca (patch) | |
tree | b152e4935256da71e091d4acf762d3ffe788b4df /app/xenodm | |
parent | e8543c4113374fa72149ec844a57054248147f27 (diff) |
chown the first drm render node in addition to the primary drm device
ok matthieu@
Diffstat (limited to 'app/xenodm')
-rw-r--r-- | app/xenodm/config/GiveConsole | 5 | ||||
-rw-r--r-- | app/xenodm/config/TakeConsole | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/xenodm/config/GiveConsole b/app/xenodm/config/GiveConsole index 9f998aa1d..771f8a2b9 100644 --- a/app/xenodm/config/GiveConsole +++ b/app/xenodm/config/GiveConsole @@ -1,6 +1,6 @@ #!/bin/sh # Assign ownership of the console to the invoking user -# $OpenBSD: GiveConsole,v 1.2 2018/07/11 19:20:40 matthieu Exp $ +# $OpenBSD: GiveConsole,v 1.3 2019/05/12 11:53:06 jsg Exp $ # # By convention, both xconsole and xterm -C check that the # console is owned by the invoking user and is readable before attaching @@ -11,4 +11,7 @@ chown $USER /dev/console if [ -c /dev/drm0 ]; then chown $USER /dev/drm0 fi +if [ -c /dev/drmR128 ]; then + chown $USER /dev/drmR128 +fi /usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER diff --git a/app/xenodm/config/TakeConsole b/app/xenodm/config/TakeConsole index a7ae840db..88c9aa889 100644 --- a/app/xenodm/config/TakeConsole +++ b/app/xenodm/config/TakeConsole @@ -1,11 +1,14 @@ #!/bin/sh # Reassign ownership of the console to root, this should disallow # assignment of console output to any random users's xterm -# $OpenBSD: TakeConsole,v 1.3 2018/07/11 19:20:40 matthieu Exp $ +# $OpenBSD: TakeConsole,v 1.4 2019/05/12 11:53:06 jsg Exp $ # chown root /dev/console chmod 622 /dev/console if [ -c /dev/drm0 ]; then chown root /dev/drm0 fi +if [ -c /dev/drmR128 ]; then + chown root /dev/drmR128 +fi /usr/X11R6/bin/sessreg -d -l $DISPLAY -u none $USER |