Skip to content

Commit 49f2507

Browse files
NO-JIRA: ci(runners): dump raw clone/execve lines in strace diagnostic
Show full clone3() flags to verify they're thread-creation (no CLONE_NEW*), and capture execve/fexecve to detect the containers/ storage re-exec that may trigger AppArmor profile changes. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3950da8 commit 49f2507

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/test-ibm-podman-dns.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,16 @@ jobs:
257257
bash -c '
258258
dnf install -y --quiet podman strace
259259
echo "=== strace: look for clone/unshare/setns syscalls ==="
260-
strace -f -e trace=clone,clone3,unshare,setns,socket -o /tmp/strace.log \
260+
strace -f -e trace=clone,clone3,unshare,setns,socket,execve -o /tmp/strace.log \
261261
podman pull quay.io/centos/centos:stream9-minimal 2>&1 || true
262-
echo "=== clone/unshare/setns calls ==="
262+
echo "=== clone/unshare/setns calls (count) ==="
263263
grep -c "clone\|unshare\|setns" /tmp/strace.log || echo "none found"
264-
grep "unshare\|setns\|CLONE_NEWUSER\|CLONE_NEWNET\|CLONE_NEWNS" /tmp/strace.log | head -20
264+
echo "=== raw clone/unshare/setns lines (all flags visible) ==="
265+
grep -E "clone3?\(|unshare\(|setns\(" /tmp/strace.log | head -20
266+
echo "=== lines with namespace flags ==="
267+
grep "CLONE_NEWUSER\|CLONE_NEWNET\|CLONE_NEWNS" /tmp/strace.log | head -10 || echo "no namespace flags found"
268+
echo "=== fexecve/execve calls (re-exec detection) ==="
269+
grep -E "execve\(|fexecve\(" /tmp/strace.log | head -10 || echo "no execve found"
265270
echo "=== socket calls that failed ==="
266271
grep "socket.*= -1" /tmp/strace.log | head -10
267272
echo "=== first DNS-related socket call ==="

0 commit comments

Comments
 (0)