xenocara/app/xdm/config/TakeConsole
jca 82a7a68ebe Pass sessreg(1) the correct path to the Xservers file.
xdm sessions were erroneously marked as active after being terminated.

Issue noticed and patch by Patrick Keshishian.
ok matthieu@
2015-01-25 21:51:20 +00:00

12 lines
384 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.5 2015/01/25 21:51:20 jca 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 /etc/X11/xdm/Xservers $USER