pcp
[Top] [All Lists]

Re: [pcp] odd problem in qa/255 for UNIX domain socket for pmcd

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: [pcp] odd problem in qa/255 for UNIX domain socket for pmcd
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Fri, 19 Jul 2013 10:43:56 -0400
Cc: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <y0mzjtiy6ys.fsf@xxxxxxxx>
References: <51E9186A.4040006@xxxxxxxxxxxxxxxx> <y0mzjtiy6ys.fsf@xxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7
On 07/19/2013 10:12 AM, Frank Ch. Eigler wrote:
Ken McDonell <kenj@xxxxxxxxxxxxxxxx> writes:

[...]
pmcd is running as pcp at this point, so it is never going to be able to remove 
pmcd.socket setup like this

kenj@bozo-laptop:~/src/pcp/qa$ ls -l /var/run/pcp
total 4
-rw-r--r-- 1 root root 5 Jul 19 20:27 pmcd.pid
srw-rw-rw- 1 root root 0 Jul 19 20:27 pmcd.socket
Hm, why isn't pmcd creating that socket after the setuid transition, ie. as 
pcp:pcp?

We solved this by creating /var/run/pcp as '775 root pcp':

commit f31ccfc82dfe79d444637b132feb71148458408c
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Wed Jul 3 21:19:16 2013 -0400

    Make sure that $PCP_RUN_DIR is insatlled as '775 $PCP_USER $PCP_GROUP'.

Dave

<Prev in Thread] Current Thread [Next in Thread>