summaryrefslogtreecommitdiff
path: root/app/xdm/config/TakeConsole
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2013-11-18 20:39:49 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2013-11-18 20:39:49 +0000
commitdf78339aa6db54bd14e33e40f0fcf25d1aa8bf81 (patch)
treeba0e53fd37c435d85dddc06635ac50903f79527d /app/xdm/config/TakeConsole
parentba22d9638eea69c4f7f26310af27dbe0adda7662 (diff)
Give /dev/drm0 to the user logging into xdm to be able
to run OpenGL applications. ok kettenis@, naddy@
Diffstat (limited to 'app/xdm/config/TakeConsole')
-rw-r--r--app/xdm/config/TakeConsole5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/xdm/config/TakeConsole b/app/xdm/config/TakeConsole
index 0a94d017a..89ca69cf7 100644
--- a/app/xdm/config/TakeConsole
+++ b/app/xdm/config/TakeConsole
@@ -1,8 +1,11 @@
#!/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 2010/03/28 09:33:02 matthieu Exp $
+# $OpenBSD: TakeConsole,v 1.4 2013/11/18 20:39:48 matthieu Exp $
#
chmod 622 /dev/console
chown root /dev/console
+if [ -c /dev/drm0 ]; then
+ chown root /dev/drm0
+fi
/usr/X11R6/bin/sessreg -d -l $DISPLAY -u /var/run/utmp -x /usr/X11R6/lib/X11/xdm/Xservers $USER