4 # Check no possible root exploit via pmpost. This test originally
5 # used the actual exploit, but this has not been feasible for many
6 # years; so we now simply check the right permissions are in place
7 # and move right along...
9 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
13 echo "QA output created by $seq"
15 # get standard environment, filters and checks
20 status
=0 # success is the default!
21 trap "$sudo rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 # real QA test starts here
24 pmpost
=$PCP_BINADM_DIR/pmpost
25 echo "Using pmpost binary: $pmpost" > $seq.full
26 test -u "$pmpost" && echo "FAIL: pmpost has setuid bit set"
27 test -g "$pmpost" && echo "FAIL: pmpost has setgid bit set"