[systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

Mantas Mikulėnas grawity at gmail.com
Wed Oct 2 15:37:56 UTC 2019


On Wed, Oct 2, 2019 at 5:58 PM Ian Pilcher <arequipeno at gmail.com> wrote:

> On 9/26/19 11:49 AM, Mantas Mikulėnas wrote:
> > In JS-based polkit rules, the action usually comes with 'unit' and
> > 'verb' polkit variables -- according to src/core/dbus-unit.c:
> >
> >      if (action.id <http://action.id> ==
> > "org.freedesktop.systemd1.manage-unit" && action.lookup("unit") ==
> > "foo.service") { return polkit.Result.YES; }
> >
> > In older polkit versions which use .pkla rules, variables are not
> > available at all.
>
> They don't seem to be available on CentOS 7, which has systemd 219,
> either (even though it does use JavaScript rules).  :(
>

Ah yes, according to NEWS it's a v226 change.

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20191002/0fd1ac6d/attachment.html>


More information about the systemd-devel mailing list