This commit is contained in:
Patrick Schleizer 2022-07-09 11:40:01 -04:00
parent 1df2cfd1ad
commit adfdac6dea
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -80,13 +80,12 @@ do
fi
done
## https://www.whonix.org/wiki/Security-misc#selinux
##
## on SELinux systems, at least /sys/fs/selinux
## must be visible to unprivileged users, else
## SELinux userspace utilities will not function
## properly
if [ -d /sys/fs/selinux ]; then
echo "INFO: https://www.whonix.org/wiki/Security-misc#selinux"
if [ "${selinux}" = "1" ]; then
## restrict permissions on everything but
## what is needed