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