aports/testing/modemmanager/modemmanager.rules
Stuart Cardall 78f4aa790d testing/modemmanager: new aport
ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G)
devices and connections. Whether built-in devices, USB dongles, bluetooth-paired
telephones, or professional RS232/USB devices with external power supplies,
ModemManager is able to prepare and configure the modems and setup connections
with them.
http://www.freedesktop.org/wiki/Software/ModemManager/
2015-04-28 00:51:46 +02:00

9 lines
294 B
Plaintext

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