diff options
Diffstat (limited to 'sbopkglint.d/20-arch.t.sh')
-rw-r--r-- | sbopkglint.d/20-arch.t.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbopkglint.d/20-arch.t.sh b/sbopkglint.d/20-arch.t.sh index de13ad7..bb9fafe 100644 --- a/sbopkglint.d/20-arch.t.sh +++ b/sbopkglint.d/20-arch.t.sh @@ -38,6 +38,9 @@ if [ -n "$WRONGDIR" ]; then while read line; do file="$( echo $line | cut -d: -f1 )" filetype="$( echo $line | cut -d: -f2 )" + + [ ! -x "$file" ] && ls -bld "$file" >> .nonexec.$$ + case "$file" in # 20220414 bkw: only check for libs directly in the dir. # this avoids e.g. lib/udev/<executable> and usr/lib/prgnam/plugins/*.so. @@ -78,5 +81,6 @@ fi [ -s .inwrongdir.$$ ] && warn "shared lib(s) in wrong dir for ARCH:" && cat .inwrongdir.$$ [ -s .wrongarch.$$ ] && warn "ELF object(s) with wrong arch (should be $CPU):" && cat .wrongarch.$$ [ -s .notstripped.$$ ] && warn "ELF object(s) not stripped:" && cat .notstripped.$$ +[ -s .nonexec.$$ ] && warn "ELF binaries/libraries should be executable:" && cat .nonexec.$$ -rm -f .inwrongdir.$$ .wrongarch.$$ .notstripped.$$ +rm -f .inwrongdir.$$ .wrongarch.$$ .notstripped.$$ .nonexec.$$ |