From d35e9be67d9a9e2be7f2ef096ee7b55f43f794b2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 10 Sep 2017 16:33:04 +0100 Subject: [PATCH] Show libs with bad permissions --- tests/check-libs-mode.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/check-libs-mode.sh b/tests/check-libs-mode.sh index 80b91a78..3d15047a 100644 --- a/tests/check-libs-mode.sh +++ b/tests/check-libs-mode.sh @@ -7,7 +7,8 @@ if [ -d "/lib" ];then if [ $COUNT -eq 0 ];then : else - exit 1 + find -L /lib -type f -perm /022 -exec ls -l {} \; + exit 1 fi fi if [ -d "/lib64" ];then @@ -17,7 +18,8 @@ if [ -d "/lib64" ];then if [ $COUNT -eq 0 ];then : else - exit 1 + find -L /lib64 -type f -perm /022 -exec ls -l {} \; + exit 1 fi fi if [ -d "/usr/lib" ];then @@ -27,7 +29,8 @@ if [ -d "/usr/lib" ];then if [ $COUNT -eq 0 ];then : else - exit 1 + find -L /usr/lib -type f -perm /022 -exec ls -l {} \; + exit 1 fi fi if [ -d "/usr/lib64" ];then @@ -37,7 +40,8 @@ if [ -d "/usr/lib64" ];then if [ $COUNT -eq 0 ];then : else - exit 1 + find -L /usr/lib64 -type f -perm /022 -exec ls -l {} \; + exit 1 fi fi