summaryrefslogtreecommitdiff
path: root/app/xenodm/config/TakeConsole.in
blob: 35300d734e841e93850a6a382ddcdfcf247f75ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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.3 2023/11/10 18:49:21 matthieu Exp $
#
prefix="@prefix@"
exec_prefix="@exec_prefix@"

chown root:wheel /dev/console
chmod 622 /dev/console
if [ -c /dev/dri/card0 ]; then
    chown root:wheel /dev/dri/card0
fi
if [ -c /dev/dri/renderD128 ]; then
    chown root:wheel /dev/dri/renderD128
fi
@bindir@/sessreg -d -l $DISPLAY -u none $USER