2016-11-29 13:37:48 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -d "/lib" ];then
|
|
|
|
|
|
|
|
COUNT=$(find -L /lib -type f -perm /022 -exec ls -l {} \; |wc -l)
|
|
|
|
|
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
2017-09-10 17:33:04 +02:00
|
|
|
find -L /lib -type f -perm /022 -exec ls -l {} \;
|
|
|
|
exit 1
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ -d "/lib64" ];then
|
|
|
|
|
|
|
|
COUNT=$(find -L /lib64 -type f -perm /022 -exec ls -l {} \; |wc -l)
|
|
|
|
|
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
2017-09-10 17:33:04 +02:00
|
|
|
find -L /lib64 -type f -perm /022 -exec ls -l {} \;
|
|
|
|
exit 1
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ -d "/usr/lib" ];then
|
|
|
|
|
|
|
|
COUNT=$(find -L /usr/lib -type f -perm /022 -exec ls -l {} \; |wc -l)
|
|
|
|
|
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
2017-09-10 17:33:04 +02:00
|
|
|
find -L /usr/lib -type f -perm /022 -exec ls -l {} \;
|
|
|
|
exit 1
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ -d "/usr/lib64" ];then
|
|
|
|
|
|
|
|
COUNT=$(find -L /usr/lib64 -type f -perm /022 -exec ls -l {} \; |wc -l)
|
|
|
|
|
|
|
|
if [ $COUNT -eq 0 ];then
|
|
|
|
:
|
|
|
|
else
|
2017-09-10 17:33:04 +02:00
|
|
|
find -L /usr/lib64 -type f -perm /022 -exec ls -l {} \;
|
|
|
|
exit 1
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|
|
|
|
fi
|
2016-11-29 23:01:33 +01:00
|
|
|
|
|
|
|
exit 0
|