elfutils/tests/Sanity/yama-scope/ptrace-scope-test.sh
2021-11-16 19:43:53 +01:00

9 lines
135 B
Bash

#!/bin/bash
RETVAL=0
OUT=$(mktemp)
eu-stack -p $$ |& tee $OUT
grep -i 'operation not permitted' $OUT && RETVAL=1
rm $OUT
exit $RETVAL