f8d726d75d
ok matthieu@
15 lines
410 B
Bash
15 lines
410 B
Bash
#!/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.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
|