blob: d5448d50bf40b83b31e6a70b7c88fff022442964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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.1 2021/08/30 15:38:27 matthieu Exp $
#
prefix="@prefix@"
exec_prefix="@exec_prefix@"
chown root /dev/console
chmod 622 /dev/console
if [ -c /dev/drm0 ]; then
chown root /dev/drm0
fi
if [ -c /dev/drmR128 ]; then
chown root /dev/drmR128
fi
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
|