90-corectrl.rules 306 B

123456789
  1. polkit.addRule(function(action, subject) {
  2. if ((action.id == "org.corectrl.helper.init" ||
  3. action.id == "org.corectrl.helperkiller.init") &&
  4. subject.local == true &&
  5. subject.active == true &&
  6. subject.isInGroup("sudo")) {
  7. return polkit.Result.YES;
  8. }
  9. });