gjdwebserver-overlay/net-misc/modemmanager/files/modemmanager-pp.rules
Gerben Jan Dijkman 0974983d2c Added ModemManager
2021-03-24 22:57:24 +01:00

12 lines
432 B
Plaintext

// Let users in plugdev group modify ModemManager
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.ModemManager1.Device.Control" ||
action.id == "org.freedesktop.ModemManager1.Contacts" ||
action.id == "org.freedesktop.ModemManager1.Messaging" ||
action.id == "org.freedesktop.ModemManager1.Location") &&
subject.isInGroup("plugdev") && subject.active) {
return "yes";
}
});