Files
agnos-builder/userspace/files/comma-polkit.rules
T
Shane Smiskol abf7a1ac46 Remove deprecated PolicyKit authorization files (#477)
* start

* clean up

* remove pkla

* clean up

* not needed

* and that
2025-07-15 18:28:30 -07:00

9 lines
296 B
Plaintext

// Allow sudo users to control network & modem
polkit.addRule(function (action, subject) {
if ((action.id.startsWith("org.freedesktop.NetworkManager.") ||
action.id.startsWith("org.freedesktop.ModemManager1.")) &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});