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