libpcp_pmda: ensure af_unix socket ownership allows pmcd to read
commitb6772605a3dbef6032388ca86e87ce607867f106
authorNathan Scott <nathans@redhat.com>
Fri, 29 Jan 2016 05:14:26 +0000 (29 16:14 +1100)
committerNathan Scott <nathans@redhat.com>
Fri, 29 Jan 2016 05:14:26 +0000 (29 16:14 +1100)
treee3c84344195f488ace9d3fa0ebd6bc1f9f955ddb
parent538658d9c992a452057042a44a7df349c95723e5
libpcp_pmda: ensure af_unix socket ownership allows pmcd to read

Now that PMDAs-as-root can be started by pmcd-not-as-root, we can
enter a situation where comms sockets created by PMDAs cannot be
accessed by pmcd.  Fix this by allowing the user pmcd runs as to
have access to these sockets (via filesystem permissions setting
on the socket file).

Problem uncovered by qa/110.
src/libpcp_pmda/src/open.c