qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 640
blobc36018e0f1ceb7d4244cc93a68fd2c503f8d4eec
1 #! /bin/sh
2 # PCP QA Test No. 640
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.
12 seq=`basename $0`
13 echo "QA output created by $seq"
15 # get standard environment, filters and checks
16 . ./common.product
17 . ./common.filter
18 . ./common.check
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"
28 echo "Test complete"
29 exit