Open maddin58 opened 1 year ago
https://github.com/containers/podman-security-bench/blob/8dbf9170b13733ebd4d4da7c9daa3fe546e8b3ad/tests/4_container_images.sh#L216
mapfile -t containerFiles < "$(podman export "$c" | tar -tv 2>/dev/null | grep -E '^[-rwx].(s|S).\s[0-9]' | awk '{print $6}')"
https://github.com/containers/podman-security-bench/blob/8dbf9170b13733ebd4d4da7c9daa3fe546e8b3ad/tests/4_container_images.sh#L216
mapfile -t containerFiles < "$(podman export "$c" | tar -tv 2>/dev/null | grep -E '^[-rwx].(s|S).\s[0-9]' | awk '{print $6}')"