3 # check given debs for SSP and print out the deb and filename of non-SSP ELF
7 trap "rm -rf $D" 0 1 2 3 11 13 15
13 find "$D" -type f | while read f; do
14 # ignore non-ELF files
15 readelf -h "$f" > /dev/null 2>&1 || continue
16 nm -D "$f" | grep -q __stack_chk_fail || {
17 echo "$i: ${f#$D} not built with SSP"