65 |
lint_checks() |
lint_checks() |
66 |
{ |
{ |
67 |
local dest="$1" |
local dest="$1" |
68 |
|
local rpath |
69 |
|
|
70 |
# check deps |
# check deps |
71 |
echo |
echo |
72 |
echo "Autodetect runtime soname dependencies for '${dest}':" |
echo "Autodetect runtime soname dependencies for '${dest}':" |
73 |
${MLIBDIR}/autodepend.sh "${dest}" |
${MLIBDIR}/autodepend.sh "${dest}" |
74 |
echo |
echo |
75 |
|
|
76 |
|
# insecure rpath |
77 |
|
echo |
78 |
|
echo -e "Scanning binaries for insecure rpath in '${COLGREEN}${dest}${COLDEFAULT}'" |
79 |
|
rpath=$(scanelf -qyRF '%r -> %p' "${dest}" | grep -E "(${BUILDDIR}|: |::|^ )") |
80 |
|
if [[ -n ${rpath} ]] |
81 |
|
then |
82 |
|
echo -e "Insecure rpath of '${dest}':" |
83 |
|
echo "${rpath}" |
84 |
|
echo -e "${COLRED}Insecure binaries detected!${COLDEFAULT}" |
85 |
|
echo |
86 |
|
|
87 |
|
echo "DEBUG: paused" |
88 |
|
read |
89 |
|
else |
90 |
|
echo "none found :)" |
91 |
|
fi |
92 |
|
echo |
93 |
} |
} |
94 |
|
|
95 |
load_mage_features |
load_mage_features |