elfutils/tests/Sanity/yama-scope/ptrace-scope-test.sh

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