summaryrefslogtreecommitdiff
path: root/tests/prctl-securebits.test
blob: 32b0f2aa0c0c9580161b71fd8c2075a2b3c40178 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Check decoding of prctl PR_GET_SECUREBITS/PR_SET_SECUREBITS operations.
. "${srcdir=.}/init.sh"

check_prog grep
run_prog > /dev/null
run_strace -a25 -eprctl $args > "$EXP"
grep -v '^prctl(PR_[GS]ET_[^S][^E][^C][^U]' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"