1 #!/bin/sh 2 3 # Check how prctl PR_SET_SECCOMP SECCOMP_MODE_STRICT is decoded. 4 5 . "${srcdir=.}/init.sh" 6 7 check_prog grep 8 set -- "../$NAME" 9 "$@" > /dev/null || { 10 case $? in 11 77) skip_ "$* exited with code 77" ;; 12 137) framework_skip_ "$* killed by SIGKILL, fix your kernel" ;; 13 *) fail_ "$args failed" ;; 14 esac 15 } 16 run_strace -eprctl "$@" > "$EXP" 17 grep -v '^prctl(PR_GET_' < "$LOG" > "$OUT" 18 match_diff "$OUT" "$EXP" 19