summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-05-12 11:53:07 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:43 +0200
commit91c3244c8408f340c546a405996f56a5fb6cf615 (patch)
treeb8f879788df561d95310a8fbf9676f04d67e82dc
parentb1834bb1818fc7a26726b32bcb8eafeb6eaf2a08 (diff)
chown the first drm render node in addition to the primary drm device ok matthieu@
-rw-r--r--config/GiveConsole3
-rw-r--r--config/TakeConsole5
2 files changed, 7 insertions, 1 deletions
diff --git a/config/GiveConsole b/config/GiveConsole
index 824856f..7799cda 100644
--- a/config/GiveConsole
+++ b/config/GiveConsole
@@ -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/config/TakeConsole b/config/TakeConsole
index a7ae840..88c9aa8 100644
--- a/config/TakeConsole
+++ b/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