This commit is contained in:
Bob Mottram 2017-09-10 17:05:00 +01:00
commit 3901ed9c53
2 changed files with 11 additions and 4 deletions

View File

@ -590,6 +590,9 @@ function lockdown_permissions {
fi
if [ -d /usr/lib ]; then
chown -R root:root /usr/lib/*
if [ -d /usr/lib/node_modules ]; then
chmod -R 750 /usr/lib/node_modules/*
fi
fi
if [ -d /usr/lib64 ]; then
chown -R root:root /usr/lib64/*

View File

@ -7,6 +7,7 @@ if [ -d "/lib" ];then
if [ $COUNT -eq 0 ];then
:
else
find -L /lib -type f -perm /022 -exec ls -l {} \;
exit 1
fi
fi
@ -17,6 +18,7 @@ if [ -d "/lib64" ];then
if [ $COUNT -eq 0 ];then
:
else
find -L /lib64 -type f -perm /022 -exec ls -l {} \;
exit 1
fi
fi
@ -27,6 +29,7 @@ if [ -d "/usr/lib" ];then
if [ $COUNT -eq 0 ];then
:
else
find -L /usr/lib -type f -perm /022 -exec ls -l {} \;
exit 1
fi
fi
@ -37,6 +40,7 @@ if [ -d "/usr/lib64" ];then
if [ $COUNT -eq 0 ];then
:
else
find -L /usr/lib64 -type f -perm /022 -exec ls -l {} \;
exit 1
fi
fi