3 # security hole via system() from pmie
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 trap "rm -f $tmp.* /tmp/ls; exit \$status" 0 1 2 3 15
19 # real QA test starts here
20 echo "expect /tmp/ls ..."
27 echo "Bingo! ... I have a shell now"
34 cat <<End-of-File | $sudo pmie -t 2 -T 1 2>/dev/null
35 hinv.ncpu > 0 -> shell "ls /tmp/ls";