mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-12 02:12:05 +08:00
abf7a1ac46
* start * clean up * remove pkla * clean up * not needed * and that
9 lines
296 B
Plaintext
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;
|
|
}
|
|
});
|