pcp
[Top] [All Lists]

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

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] odd problem in qa/255 for UNIX domain socket for pmcd
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sat, 20 Jul 2013 12:01:06 +1000
Cc: Dave Brolley <brolley@xxxxxxxxxx>, "Frank Ch. Eigler" <fche@xxxxxxxxxx>, PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <915379486.5036611.1374278446924.JavaMail.root@xxxxxxxxxx>
References: <51E9186A.4040006@xxxxxxxxxxxxxxxx> <y0mzjtiy6ys.fsf@xxxxxxxx> <51E950AC.4000306@xxxxxxxxxx> <51E9A199.2050301@xxxxxxxxxxxxxxxx> <915379486.5036611.1374278446924.JavaMail.root@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
On 20/07/13 10:00, Nathan Scott wrote:
FWIW, the top level GNUmakefile does this...

        $(INSTALL) -m 775 -g $(PCP_GROUP) -d $(PCP_RUN_DIR)

As a result, I thought we were covered for all the other package systems
(but admittedly I didn't check anything beyond that level).

Thanks, saves me some hunting.

Adding dirs into the GNUmakefiles is definite goodness so they are owned by the package ... but you can't set the non-root uid or gid there (nor the mode in some extreme cases, like sticky or setuid or setgid, if I recall correctly). Which is why we have this fixup stuff spread all over the landscape like this ...

$ find * -type f -a \( -name "*pre*" -o -name "*post*" \) | xargs egrep -l 'chown|chgrp|chmod'
build/mac/installer-resources/postinstall
build/mac/installer-resources/postupgrade
build/deb/pcp-3.8.2/build/mac/installer-resources/postinstall
build/deb/pcp-3.8.2/build/mac/installer-resources/postupgrade
build/deb/pcp-3.8.2/build/tar/postinstall
build/deb/pcp-3.8.2/build/tar/postinstall.tail
build/deb/pcp-3.8.2/build/sun/postinstall
build/deb/pcp-3.8.2/debian/pcp-testsuite.postinst
build/deb/pcp-3.8.2/debian/pcp.postinst.tail
build/deb/pcp-3.8.2/debian/pcp-testsuite/DEBIAN/postinst
build/deb/pcp-3.8.2/debian/pcp.postinst
build/deb/pcp-3.8.2/debian/pcp/DEBIAN/postinst
build/tar/postinstall.tail
build/sun/postinstall
debian/pcp-testsuite.postinst
debian/pcp.postinst.tail
debian/pcp.postinst



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