mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-26 04:59:24 -05:00
Merge remote-tracking branch 'github/master'
This commit is contained in:
commit
3382192b89
@ -6,3 +6,6 @@
|
||||
|
||||
## Disable the /proc/cpuinfo whitelist.
|
||||
#cpuinfo_whitelist=0
|
||||
|
||||
## Disable selinux mode.
|
||||
#selinux=0
|
||||
|
@ -7,6 +7,7 @@ set -e
|
||||
|
||||
sysfs_whitelist=1
|
||||
cpuinfo_whitelist=1
|
||||
selinux=1
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
@ -76,3 +77,16 @@ do
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
## 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
|
||||
if [ "${selinux}" = "1" ]; then
|
||||
chmod o+rx /sys /sys/fs /sys/fs/selinux
|
||||
echo "INFO: SELinux mode enabled. Restrictions loosened slightly in order to allow userspace utilities to function."
|
||||
else
|
||||
echo "INFO: SELinux detected, but SELinux mode is not enabled. Some userspace utilities may not work properly."
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user