mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
integration: output debug information in fd leak test
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
@@ -69,6 +69,8 @@ is_allowed_fdtarget() {
|
||||
if ! is_allowed_fdtarget "$target"; then
|
||||
echo "Violation: FD $fd_name -> '$target'"
|
||||
violation_found=1
|
||||
else
|
||||
echo "Permitted: FD $fd_name -> '$target'"
|
||||
fi
|
||||
done < <(find "/proc/$pid/fd" -type l -print0)
|
||||
[ "$violation_found" -eq 0 ]
|
||||
|
||||
Reference in New Issue
Block a user