mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-26 15:39:31 -05:00
Merge pull request #108 from Krish-sysadmin/master
Continue for loop if unable to change one directory's permission
This commit is contained in:
commit
dc41a58102
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user