polkit.addRule(function(action, subject) { if (subject.isInGroup("sys")) { return polkit.Result.YES; } });