2020-08-05 21:03:43 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
errcnt=0
|
|
|
|
|
|
2021-11-07 12:16:00 +01:00
|
|
|
for curfile in /usr/bin/{*btrfs*,*xfs*,dislocker*,udp*,dump,restore} \
|
2022-04-10 19:58:54 +02:00
|
|
|
/usr/bin/{ghex,growpart*,hardinfo,*lshw*,ms-sys,nwipe,whdd,zerofree} \
|
2021-12-31 09:10:34 +01:00
|
|
|
/opt/firefox*/firefox* \
|
|
|
|
|
/usr/lib/ntfs-3g/ntfs-plugin*.so \
|
|
|
|
|
/usr/lib/libgbm.so* \
|
2021-12-31 11:50:25 +01:00
|
|
|
/usr/lib/xorg/modules/drivers/modesetting_drv.so \
|
2020-10-12 18:52:08 +02:00
|
|
|
/usr/lib/libdislocker.so*
|
2020-08-05 21:03:43 +02:00
|
|
|
do
|
|
|
|
|
test -x ${curfile} || continue
|
2020-08-09 11:07:52 +02:00
|
|
|
file --mime ${curfile} | grep -q -E "x-pie-executable|x-sharedlib" || continue
|
2020-08-05 21:03:43 +02:00
|
|
|
|
|
|
|
|
if ldd ${curfile} | grep -q -F 'not found'
|
|
|
|
|
then
|
|
|
|
|
echo "ERROR: Program ${curfile} is missing libraries"
|
|
|
|
|
ldd ${curfile}
|
|
|
|
|
errcnt=$((errcnt + 1))
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ ${errcnt} -eq 0 ]
|
|
|
|
|
then
|
|
|
|
|
echo "SUCCESS: Have not found any missing library"
|
|
|
|
|
exit 0
|
|
|
|
|
else
|
|
|
|
|
echo "FAILURE: Have found ${errcnt} issues"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|