pcp
[Top] [All Lists]

Re: [pcp] dbpmda permissions

To: Martins Innus <minnus@xxxxxxxxxxx>
Subject: Re: [pcp] dbpmda permissions
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Mon, 15 Dec 2014 17:25:02 -0500 (EST)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <548F5468.9040209@xxxxxxxxxxx>
References: <548F5468.9040209@xxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: Md1nMGhsDQtoc3E1TCfeBs/Tr00pYg==
Thread-topic: dbpmda permissions
Hi Martins,

----- Original Message -----
> Hi,
>      I am trying to write some QA for hotproc and ran into a stumbling
> block with dbpma in how it treats permissions.  I have a simple access
> check in hotproc where I check for the context of the requester to be
> root in order to allow stores and this seems to work fine with pmstore:
> 
> [vagrant@pcptest pcpdec]$ pmstore hotproc.control.config "uid=0"
> hotproc.control.config old value="" new value="uid=0"
> hotproc.control.config: pmStore: No permission to perform requested
> operation
> 
> [vagrant@pcptest pcpdec]$ sudo pmstore hotproc.control.config "uid=0"
> hotproc.control.config old value="" new value="uid=0"
> [vagrant@pcptest pcpdec]$ pmval -s 1 hotproc.control.config
> 
> 
> But I can't get this to work at all with dbpmda:
> 

Ah - is the problem that you need to set the uid connection attribute?
e.g. the way Lukas has done it in qa/967?  (the client credentials are
passed over the wire via "attribute" PDUs)

cheers.

--
Nathan

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