pcp
[Top] [All Lists]

Re: pmda cache permissions issue

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: pmda cache permissions issue
From: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Mon, 19 Jan 2015 15:00:48 +1100
Cc: pcp <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <y0mppabeef5.fsf@xxxxxxxx>
References: <54BC3C60.2050403@xxxxxxxxxx> <y0mppabeef5.fsf@xxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
On 01/19/2015 12:40 PM, Frank Ch. Eigler wrote:
Mark Goodwin <mgoodwin@xxxxxxxxxx> writes:

[...]
e.g. on a fresh install, after running :
# sudo -u root pminfo -f -L hinv.map.scsi
$ sudo -u pcp pminfo -f -L -DLIBPMDA hinv.map.scsi
[...]

If this conflict can occur even for the ordinary-user -vs- pcp case,
then we'd have a security problem.

Only if 'ordinary-user' has effective gid 'pcp' (or $PCP_GROUP) since
the cache directory is mode 775 pcp/pcp. (or $PCP_USER/$PCP_GROUP).
But that group privilege would have to be assigned, or they'd need to
know the group password, right?

If it's only root -vs- pcp, it's
not so bad.  (I'd be tempted to make local-mode pmdas to avoid mucking
with system $PCP_*_DIR directories entirely, and just use $HOME/.pcp
or somesuch.)

I guess that would be more inherently secure. Not sure how libpcp_pmda
would know it was invoked via a local context (?).

-- Mark

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