xenocara/app/xenodm/config/TakeConsole.in

18 lines
478 B
Text
Raw Normal View History

#!/bin/sh
# Reassign ownership of the console to root, this should disallow
# assignment of console output to any random users's xterm
# $OpenBSD: TakeConsole.in,v 1.2 2022/01/06 23:35:41 jsg Exp $
#
prefix="@prefix@"
exec_prefix="@exec_prefix@"
chown root /dev/console
chmod 622 /dev/console
if [ -c /dev/dri/card0 ]; then
chown root /dev/dri/card0
fi
if [ -c /dev/dri/renderD128 ]; then
chown root /dev/dri/renderD128
fi
@bindir@/sessreg -d -l $DISPLAY -u none $USER