On 10/18/2009 02:04 AM, David Zeuthen wrote:
On Sat, 2009-10-17 at 09:49 +0530, Rahul Sundaram wrote:
> To help me understand this better, can you give me a example? Let's say
> I want to tweak PackageKit's policy to not ask for root password even
> when untrusted packages are being installed,
(this is not a good idea but let's ignore that for the time being)
Yeah, just a crazy example since I wanted to do something that I was
pretty sure was not the default.
> how do I go about doing that?
Did you look at the EXAMPLES section in the man page Matthias mentioned?
If it's not clear how to do it after reading that man page, do ask here
and ideally include a patch to the source for the man page. Thanks.
Yeah, I did look at the man page and was still not clear about a few
things (including how to figure out the list of possible actions
associated with a particular program) but I got the answers I needed
from Matthias Clasen on IRC earlier. Thanks.
For anyone else following along, my current understanding of doing things:
look into /usr/share/polkit-1/actions and grep actions foo.policy for a
list of actions. Then for local changes, edit
/etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf following
/var/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla
(vendor supplied) as an example.
Rahul