* tests/seccomp.c: New file. * tests/seccomp.test: New test. * tests/Makefile.am (check_PROGRAMS): Add seccomp. (TESTS): Add seccomp.test. * tests/.gitignore: Add seccomp.
16 lines
200 B
Bash
Executable File
16 lines
200 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check how SECCOMP_MODE_FILTER is decoded.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
OUT="$LOG.out"
|
|
|
|
run_prog > /dev/null
|
|
run_strace -veprctl $args > "$OUT"
|
|
match_diff "$LOG" "$OUT"
|
|
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|