Dmitry V. Levin
6ba947f36e
Always print struct sock_fprog.len. Fix printing of unfetchable elements in sock_filter array. Fix printing of large sock_filter arrays. * seccomp.c (decode_fprog): Rewrite into decode_seccomp_fprog and print_seccomp_fprog. (print_seccomp_filter): Replace decode_fprog with print_seccomp_fprog. * tests/prctl-seccomp-filter-v.c (main): Update. * tests/seccomp-filter-v.c: New file. * tests/seccomp-filter-v.test: New test. * tests/.gitignore: Add seccomp-filter-v. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add seccomp-filter-v.test.
7 lines
139 B
Bash
Executable File
7 lines
139 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check verbose decoding of seccomp SECCOMP_SET_MODE_FILTER.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
run_strace_match_diff -v -e trace=seccomp
|