Re: Replacing polkit JS backend

2018-01-03 Thread Miloslav Trmac
2018-01-03 19:47 GMT+01:00 Simon McVittie : > On Wed, 03 Jan 2018 at 17:07:03 +0100, Miloslav Trmac wrote: > > See one of the other mails, I’m worried that with the vaguely > systemd-like ”no > > programming language, but a few ‘simple’ special-cased condition > operators” > > systems never stay s

Re: Replacing polkit JS backend

2018-01-03 Thread Simon McVittie
On Wed, 03 Jan 2018 at 17:07:03 +0100, Miloslav Trmac wrote: > See one of the other mails, I’m worried that with the vaguely systemd-like ”no > programming language, but a few ‘simple’ special-cased condition operators” > systems never stay simple. This is a valid concern. > more and more Conditi

Re: Replacing polkit JS backend

2018-01-03 Thread Miloslav Trmac
Hello, 2017-10-21 20:54 GMT+02:00 Ikey Doherty : > On 21/10/17 19:39, Michael Biebl wrote: > So to use the libvirt example: > > polkit.addRule(function(action, subject) { > if (action.id == "org.libvirt.api.connect.getattr" && > subject.user == "berrange") { > if (action.look

Re: Replacing polkit JS backend

2018-01-03 Thread Miloslav Trmac
Hello, 2017-12-18 12:10 GMT+01:00 Ikey Doherty : > > Though it'd be great to have Miloslav weigh in on some of this too; > particularly > > things like @smcv's suggestion of a pkla translator as @mtrmac also > maintains > > . > > > > So @mtrmac is the best on

Re: Replacing polkit JS backend

2018-01-03 Thread Miloslav Trmac
Hello, 2017-12-18 11:05 GMT+01:00 Colin Walters : > Based on some (long ago now) in-person discussion with the previous polkit > maintainer: > the JS backend was added for a reason from a real-world nontrivial in size > desktop deployment. > That said I don't have contact with them myself and unfo