Elliott Hughes | d35df49 | 2017-02-15 15:19:05 -0800 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | # Check decoding of prctl PR_GET_SECUREBITS/PR_SET_SECUREBITS operations. | ||||
4 | . "${srcdir=.}/init.sh" | ||||
5 | |||||
6 | check_prog grep | ||||
7 | run_prog > /dev/null | ||||
8 | run_strace -a25 -eprctl $args > "$EXP" | ||||
9 | grep -v '^prctl(PR_[GS]ET_[^S][^E][^C][^U]' < "$LOG" > "$OUT" | ||||
10 | match_diff "$OUT" "$EXP" | ||||
11 | |||||
12 | rm -f "$EXP" "$OUT" |