BlueGit

timfa bluegit

Files

bluegit / packaging / bluegit-update.rules

bluegit-update.rules

feat: self-update via een root-unit achter een token
timfa project_87923614_bot_3aff574f6f98414b945a8799374f9092 · pushed by timfa · 3 weeks ago
ad7bf26a History
bluegit-update.rules 384 B Download Raw
1// Alleen gebruiker bluegit mag deze ene unit starten.
2polkit.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});