73e9623acf
* tests/prctl-dumpable.c: New file. * tests/prctl-dumpable.test: New test. * tests/.gitignore: Add prctl-dumpable. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add prctl-dumpable.test.
13 lines
286 B
Bash
Executable File
13 lines
286 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check decoding of prctl PR_GET_DUMPABLE and PR_SET_DUMPABLE operations.
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
check_prog grep
|
|
run_prog > /dev/null
|
|
run_strace -a23 -eprctl $args > "$EXP"
|
|
grep -v '^prctl(PR_[GS]ET_[^D][^U]' < "$LOG" > "$OUT"
|
|
match_diff "$OUT" "$EXP"
|
|
|
|
rm -f "$EXP" "$OUT"
|