| 1 | // Alleen gebruiker bluegit mag deze ene unit starten. |
| 2 | polkit.addRule(function(action, subject) { |
| 3 | if (action.id != "org.freedesktop.systemd1.manage-units") { |
| 4 | return; |
| 5 | } |
| 6 | if (subject.user != "bluegit") { |
| 7 | return; |
| 8 | } |
| 9 | if (action.lookup("verb") == "start" && action.lookup("unit") == "bluegit-update.service") { |
| 10 | return polkit.Result.YES; |
| 11 | } |
| 12 | }); |