On Wed, Oct 2, 2019 at 5:58 PM Ian Pilcher <arequipeno@xxxxxxxxx> 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
_______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel