2016-10-23 02:30:37 -06:00
|
|
|
#!/bin/sh
|
|
|
|
# Reassign ownership of the console to root, this should disallow
|
|
|
|
# assignment of console output to any random users's xterm
|
2017-10-04 12:28:59 -06:00
|
|
|
# $OpenBSD: TakeConsole,v 1.2 2017/10/04 18:28:59 matthieu Exp $
|
2016-10-23 02:30:37 -06:00
|
|
|
#
|
|
|
|
chown root /dev/console
|
2017-10-04 12:28:59 -06:00
|
|
|
chmod 622 /dev/console
|
2016-10-23 02:30:37 -06:00
|
|
|
if [ -c /dev/drm0 ]; then
|
|
|
|
chown root /dev/drm0
|
|
|
|
fi
|
|
|
|
/usr/X11R6/bin/sessreg -d -l $DISPLAY -u /var/run/utmp -x /etc/X11/xenodm/Xservers $USER
|