Some checks failed
Build and Test / build (debug, clang) (push) Has been cancelled
Build and Test / build (debug, gcc) (push) Has been cancelled
Build and Test / build (release, clang) (push) Has been cancelled
Build and Test / build (release, gcc) (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
sched_process_fork's comm fields became 4-byte __data_loc offsets in
newer kernels, moving child_pid from offset 44 to 20. The hand-written
tracepoint struct read past the event, so the kernel refused to attach
the program and parent-PID enrichment was always off ("Fork tracepoint
✘" in the app). The struct is now CO-RE (preserve_access_index), so
parent_pid/child_pid relocate against the running kernel's BTF. Checked
in a privileged container on kernel 7.2: attaches now, did not before.
The exec smoke test reports whether the tracepoint attached and, when it
did, requires a parent pid on the exec event. The eBPF smokes still
miss the test's own exec inside the container (an older problem, noted
in the live-test runner and tracked separately).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.1 KiB
Bash
Executable file
27 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Root-only Linux tests (fanotify exec prevention + quarantine, eBPF behavior
|
|
# events, persistence watcher, process memory scan, daemon response verbs) in a
|
|
# privileged container. tracefs/debugfs are mounted so tracepoints can attach.
|
|
set -euo pipefail
|
|
|
|
# Not run here: the eBPF exec smokes (make docker-live-bpf-smoke and friends).
|
|
# As of 2026-10-25 they miss the test's own /bin/echo exec inside the
|
|
# container on kernel 7.2 (host processes are seen; --pid=host does not
|
|
# help). Open issue in YAMS task=strawberry-audit; the daemon on the host is
|
|
# unaffected.
|
|
|
|
IMAGE_TAG="${IMAGE_TAG:-strawberry-linux-test}"
|
|
|
|
nice -n 19 docker build --cpu-quota=200000 --cpu-period=100000 --memory=4g --target test -t "${IMAGE_TAG}" .
|
|
nice -n 19 docker run --rm --privileged --cpus=2 --memory=4g \
|
|
-v /sys/kernel/tracing:/sys/kernel/tracing \
|
|
-v /sys/kernel/debug:/sys/kernel/debug \
|
|
"${IMAGE_TAG}" bash -c '
|
|
set -euo pipefail
|
|
./builddir/tests/exec_guard_live
|
|
./builddir/tests/behavior_live
|
|
./builddir/tests/file_watch_live
|
|
./builddir/tests/test_yara_scanner
|
|
./builddir/tests/test_daemon_runtime
|
|
echo "live tests: ALL PASSED"
|
|
'
|