|
@@ -36,4 +36,18 @@ if LC_ALL=C grep -E -v -x "($pattern_detached|$pattern_personality)" "$LOG" > /d
|
36
|
36
|
dump_log_and_fail_with "$STRACE $args: unexpected output"
|
37
|
37
|
fi
|
38
|
38
|
|
|
39
|
+run_strace_redir --seccomp-bpf -bexecve -enone ../set_ptracer_any false ||
|
|
40
|
+ dump_log_and_fail_with "$STRACE $args: unexpected exit status"
|
|
41
|
+
|
|
42
|
+pattern_seccomp='[^:]*strace: --seccomp-bpf is not enabled because it is not compatible with -b'
|
|
43
|
+
|
|
44
|
+LC_ALL=C grep -x "$pattern_detached" "$LOG" > /dev/null &&
|
|
45
|
+LC_ALL=C grep -x "$pattern_seccomp" "$LOG" > /dev/null ||
|
|
46
|
+ dump_log_and_fail_with "$STRACE $args: output mismatch"
|
|
47
|
+
|
|
48
|
+pattern_all="$pattern_detached|$pattern_seccomp|$pattern_personality"
|
|
49
|
+if LC_ALL=C grep -E -v -x "$pattern_all" "$LOG" > /dev/null; then
|
|
50
|
+ dump_log_and_fail_with "$STRACE $args: unexpected output"
|
|
51
|
+fi
|
|
52
|
+
|
39
|
53
|
exit 0
|