stop chowning old drm device nodes
parent
ccb2774de8
commit
3ea314d40d
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Assign ownership of the console to the invoking user
|
# Assign ownership of the console to the invoking user
|
||||||
# $OpenBSD: GiveConsole.in,v 1.1 2021/08/30 15:38:27 matthieu Exp $
|
# $OpenBSD: GiveConsole.in,v 1.2 2022/01/06 23:35:41 jsg Exp $
|
||||||
#
|
#
|
||||||
# By convention, both xconsole and xterm -C check that the
|
# By convention, both xconsole and xterm -C check that the
|
||||||
# console is owned by the invoking user and is readable before attaching
|
# console is owned by the invoking user and is readable before attaching
|
||||||
|
@ -11,12 +11,6 @@ prefix="@prefix@"
|
||||||
exec_prefix="@exec_prefix@"
|
exec_prefix="@exec_prefix@"
|
||||||
|
|
||||||
chown $USER /dev/console
|
chown $USER /dev/console
|
||||||
if [ -c /dev/drm0 ]; then
|
|
||||||
chown $USER /dev/drm0
|
|
||||||
fi
|
|
||||||
if [ -c /dev/drmR128 ]; then
|
|
||||||
chown $USER /dev/drmR128
|
|
||||||
fi
|
|
||||||
if [ -c /dev/dri/card0 ]; then
|
if [ -c /dev/dri/card0 ]; then
|
||||||
chown $USER /dev/dri/card0
|
chown $USER /dev/dri/card0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,19 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Reassign ownership of the console to root, this should disallow
|
# Reassign ownership of the console to root, this should disallow
|
||||||
# assignment of console output to any random users's xterm
|
# assignment of console output to any random users's xterm
|
||||||
# $OpenBSD: TakeConsole.in,v 1.1 2021/08/30 15:38:27 matthieu Exp $
|
# $OpenBSD: TakeConsole.in,v 1.2 2022/01/06 23:35:41 jsg Exp $
|
||||||
#
|
#
|
||||||
prefix="@prefix@"
|
prefix="@prefix@"
|
||||||
exec_prefix="@exec_prefix@"
|
exec_prefix="@exec_prefix@"
|
||||||
|
|
||||||
chown root /dev/console
|
chown root /dev/console
|
||||||
chmod 622 /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
|
|
||||||
if [ -c /dev/dri/card0 ]; then
|
if [ -c /dev/dri/card0 ]; then
|
||||||
chown root /dev/dri/card0
|
chown root /dev/dri/card0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue