Show libs with bad permissions

This commit is contained in:
Bob Mottram 2017-09-10 16:33:04 +01:00
parent d8c4860f90
commit d35e9be67d
1 changed files with 8 additions and 4 deletions

View File

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