[packagekit] [PATCH] Allow plugins to override PolicyKit action IDs

Colin Watson cjwatson at ubuntu.com
Mon Jul 15 17:11:18 PDT 2013


I've been putting together a PackageKit plugin for Click packages, as
discussed recently on this list.  I've got a fairly basic version almost
entirely working, albeit with the PackageKit 0.7 series currently in
Ubuntu (but porting to 0.8 shouldn't be hard, and I'm happy to do that
when needed).

There's one glitch, though, namely that this packaging system is
intentionally designed to be usable by non-root users, and thus it ought
to have different PolicyKit defaults.  With the version of PolicyKit we
currently have in Ubuntu (apparently there's been some concern about
pulling mozjs in at such a low level - I don't know about this
first-hand, I just got this from Martin Pitt earlier today), we
apparently can't write .pkla (or .policy) files that match on details,
only on the action ID.  In any case, I can also imagine changing the
action being useful for providing a different description.

Would it be reasonable to allow plugins to override the action ID, as in
the attached patch?  This seems like a fairly lightweight and general
facility.

Thanks,

-- 
Colin Watson                                       [cjwatson at ubuntu.com]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-plugins-to-override-PolicyKit-action-IDs.patch
Type: text/x-diff
Size: 3826 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20130716/f30d26b0/attachment.patch>


More information about the PackageKit mailing list