Update hide-hardware-info

This commit is contained in:
Krish-sysadmin 2022-07-05 03:37:40 +02:00 committed by GitHub
parent 69af8be7b8
commit e5f8004a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,9 +93,9 @@ if [ -d /sys/fs/selinux ]; then
for i in /sys/* /sys/fs/*
do
if [ "${sysfs_whitelist}" = "1" ]; then
chmod o-rwx "${i}"
chmod o-rwx "${i}" || continue
else
chmod og-rwx "${i}"
chmod og-rwx "${i}" || continue
fi
done
chmod o+rx /sys /sys/fs /sys/fs/selinux