From 40d833b81fcc844de7bbe7a1b075335d0ee0df78 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Tue, 12 May 2015 22:50:59 +0300 Subject: [modemmanager] added specific built modemmanager --- net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules (limited to 'net-misc/modemmanager/files') diff --git a/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules b/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules new file mode 100644 index 00000000..7fca6472 --- /dev/null +++ b/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules @@ -0,0 +1,7 @@ +// 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"; + } +}); -- cgit v1.2.3