Show non-compliant library files

This commit is contained in:
Bob Mottram 2018-01-07 11:22:47 +00:00
parent 676fb374e2
commit 45e70c80f2
1 changed files with 28 additions and 24 deletions

View File

@ -2,41 +2,45 @@
if [ -d "/lib" ];then if [ -d "/lib" ];then
COUNT=$(find -L /lib \! -user root -exec ls -l {} \; | grep -v '> /dev/null' | wc -l) COUNT=$(find -L /lib \! -user root -exec ls -l {} \; | grep -v '> /dev/null' | wc -l)
if [ $COUNT -eq 0 ];then if [ $COUNT -eq 0 ];then
: :
else else
exit 1 find -L /lib \! -user root -exec ls -l {} \; | grep -v '> /dev/null'
fi exit 1
fi
fi fi
if [ -d "/lib64" ];then if [ -d "/lib64" ];then
COUNT=$(find -L /lib64 \! -user root -exec ls -l {} \; |wc -l) COUNT=$(find -L /lib64 \! -user root -exec ls -l {} \; |wc -l)
if [ $COUNT -eq 0 ];then if [ $COUNT -eq 0 ];then
: :
else else
exit 1 find -L /lib64 \! -user root -exec ls -l {} \;
fi exit 1
fi
fi fi
if [ -d "/usr/lib" ];then if [ -d "/usr/lib" ];then
COUNT=$(find -L /usr/lib \! -user root -exec ls -l {} \; |wc -l) COUNT=$(find -L /usr/lib \! -user root -exec ls -l {} \; |wc -l)
if [ $COUNT -eq 0 ];then if [ $COUNT -eq 0 ];then
: :
else else
exit 1 find -L /usr/lib \! -user root -exec ls -l {} \;
fi exit 1
fi
fi fi
if [ -d "/usr/lib64" ];then if [ -d "/usr/lib64" ];then
COUNT=$(find -L /usr/lib64 \! -user root -exec ls -l {} \; |wc -l) COUNT=$(find -L /usr/lib64 \! -user root -exec ls -l {} \; |wc -l)
if [ $COUNT -eq 0 ];then if [ $COUNT -eq 0 ];then
: :
else else
exit 1 find -L /usr/lib64 \! -user root -exec ls -l {} \;
fi exit 1
fi
fi fi