Files
server/usr/share/polkit-1/rules.d/org.freedesktop.bolt.rules
2026-01-07 20:52:11 +01:00

11 lines
368 B
Plaintext

// -*- mode: js2 -*-
polkit.addRule(function(action, subject) {
if ((action.id === "org.freedesktop.bolt.enroll" ||
action.id === "org.freedesktop.bolt.authorize" ||
action.id === "org.freedesktop.bolt.manage") &&
subject.active === true && subject.local === true &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});