3 # Exercise transfer of pid, uid, gid from client to PMDA
4 # when using Unix domain sockets.
6 # Copyright (c) 2013 Red Hat.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
18 $unix_domain_sockets || _notrun
"No unix domain socket support available"
20 status
=1 # failure is the default!
21 $sudo rm -rf $tmp.
* $seq.full
22 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
28 ln $seq.out.darwin
$seq.out ||
exit 1
31 ln $seq.out.default
$seq.out ||
exit 1
39 -e "s/processid=$pid/processid=PID/" \
40 -e "s/groupid=$gid/groupid=GID/" \
41 -e "s/userid=$uid/userid=UID/" \
42 -e '/ctx=[0-9][0-9]*/s//ctx=N/' \
43 -e '/pmdasample([0-9][0-9]*)/s//pmdasample(PID)/' \
44 -e 's/^\[[A-Z].. [A-Z].. *[0-9][0-9]* ..:..:..]/[DATETIME]/'
47 # real QA test starts here
48 _service pmcd start
>/dev
/null
2>&1
51 # store to enable verbose attribute diagnostics
52 authdbg
=`pmdbg -l | grep DBG_TRACE_AUTH | awk '{ print $2 }'`
53 pmstore sample.control
$authdbg
55 # unix domain fetch (with attribute transfer)
56 pminfo
-h unix
: sample.long.one
&
62 # let pmdasample complete setup
65 cat $PCP_LOG_DIR/pmcd
/sample.log \
66 |
tee -a $here/$seq.full \
68 pmstore sample.control
0