1*cf84ac9aSAndroid Build Coastguard Worker#!/bin/sh 2*cf84ac9aSAndroid Build Coastguard Worker 3*cf84ac9aSAndroid Build Coastguard Worker# Check decoding of prctl PR_GET_DUMPABLE and PR_SET_DUMPABLE operations. 4*cf84ac9aSAndroid Build Coastguard Worker. "${srcdir=.}/init.sh" 5*cf84ac9aSAndroid Build Coastguard Worker 6*cf84ac9aSAndroid Build Coastguard Workercheck_prog grep 7*cf84ac9aSAndroid Build Coastguard Workerrun_prog > /dev/null 8*cf84ac9aSAndroid Build Coastguard Workerrun_strace -a23 -eprctl $args > "$EXP" 9*cf84ac9aSAndroid Build Coastguard Workergrep -v '^prctl(PR_[GS]ET_[^D][^U]' < "$LOG" > "$OUT" 10*cf84ac9aSAndroid Build Coastguard Workermatch_diff "$OUT" "$EXP" 11