Added ModemManager
This commit is contained in:
11
net-misc/modemmanager/files/modemmanager-pp.rules
Normal file
11
net-misc/modemmanager/files/modemmanager-pp.rules
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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";
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user