<div dir="ltr"><div dir="ltr">On Wed, Oct 2, 2019 at 5:58 PM Ian Pilcher <<a href="mailto:arequipeno@gmail.com">arequipeno@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 9/26/19 11:49 AM, Mantas Mikulėnas wrote:<br>
> In JS-based polkit rules, the action usually comes with 'unit' and <br>
> 'verb' polkit variables -- according to src/core/dbus-unit.c:<br>
> <br>
> if (<a href="http://action.id" rel="noreferrer" target="_blank">action.id</a> <<a href="http://action.id" rel="noreferrer" target="_blank">http://action.id</a>> == <br>
> "org.freedesktop.systemd1.manage-unit" && action.lookup("unit") == <br>
> "foo.service") { return polkit.Result.YES; }<br>
> <br>
> In older polkit versions which use .pkla rules, variables are not <br>
> available at all.<br>
<br>
They don't seem to be available on CentOS 7, which has systemd 219,<br>
either (even though it does use JavaScript rules). :(<br></blockquote><div><br></div><div>Ah yes, according to NEWS it's a v226 change.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>