parent
7759f5e5df
commit
817db0ea98
|
@ -552,6 +552,15 @@ postcheck() {
|
||||||
warning "World writeable directories found:"
|
warning "World writeable directories found:"
|
||||||
echo "$i"
|
echo "$i"
|
||||||
fi
|
fi
|
||||||
|
# check so we dont have any suid root binaries that are not
|
||||||
|
i=$(find "$dir" -type f -perm +6000 \
|
||||||
|
| xargs scanelf --nobanner --etype ET_EXEC \
|
||||||
|
| sed "s|ET_EXEC $dir|\t|")
|
||||||
|
if [ -n "$i" ]; then
|
||||||
|
error "Found non-PIE files that has SUID:"
|
||||||
|
echo "$i"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue