#! /bin/sh
# Xreset - run as root after session exits

# Reassign ownership of the console to root, this should disallow
# assignment of console output to any random users's xterm. See Xstartup.
#
#chown root /dev/console
#chmod 622 /dev/console

# Reset access to OpenBSD Direct Rendering Manager
chown root /dev/drm0
chmod 0600 /dev/drm0

# This is an OpenBSD-specific hack until ConsoleKit gets fixed.
# OpenBSD does not support multi-seat X sessions now anyway.
#
pkill -u 0 ${LOCALBASE}/sbin/console-kit-daemon

# XDM configurations typically have sessreg here. KDM has it built-in.
