Merge pull request #51317 from bjornfor/audit-tmpdir
audit-tmpdir hook: use abspath matching on RPATH entries
This commit is contained in:
commit
617c2a36eb
@ -20,7 +20,7 @@ auditTmpdir() {
|
||||
if [[ "$i" =~ .build-id ]]; then continue; fi
|
||||
|
||||
if isELF "$i"; then
|
||||
if patchelf --print-rpath "$i" | grep -q -F "$TMPDIR/"; then
|
||||
if { printf :; patchelf --print-rpath "$i"; } | grep -q -F ":$TMPDIR/"; then
|
||||
echo "RPATH of binary $i contains a forbidden reference to $TMPDIR/"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user