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

Ian Pilcher arequipeno at gmail.com
Wed Oct 2 14:58:11 UTC 2019


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).  :(

-- 
========================================================================
Ian Pilcher                                         arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================


More information about the systemd-devel mailing list