2023-08-28 05:57:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Reassign ownership of the console to root, this should disallow
|
|
|
|
# assignment of console output to any random users's xterm
|
2023-11-11 18:37:37 +00:00
|
|
|
# $OpenBSD: TakeConsole.in,v 1.3 2023/11/10 18:49:21 matthieu Exp $
|
2023-08-28 05:57:34 +00:00
|
|
|
#
|
|
|
|
prefix="@prefix@"
|
|
|
|
exec_prefix="@exec_prefix@"
|
|
|
|
|
2023-11-11 18:37:37 +00:00
|
|
|
chown root:wheel /dev/console
|
2023-08-28 05:57:34 +00:00
|
|
|
chmod 622 /dev/console
|
|
|
|
if [ -c /dev/dri/card0 ]; then
|
2023-11-11 18:37:37 +00:00
|
|
|
chown root:wheel /dev/dri/card0
|
2023-08-28 05:57:34 +00:00
|
|
|
fi
|
|
|
|
if [ -c /dev/dri/renderD128 ]; then
|
2023-11-11 18:37:37 +00:00
|
|
|
chown root:wheel /dev/dri/renderD128
|
2023-08-28 05:57:34 +00:00
|
|
|
fi
|
|
|
|
@bindir@/sessreg -d -l $DISPLAY -u none $USER
|