summaryrefslogtreecommitdiff
path: root/net-misc/modemmanager/files
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-05-12 22:50:59 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-05-12 22:50:59 +0300
commit40d833b81fcc844de7bbe7a1b075335d0ee0df78 (patch)
tree374b1006d7ffd0c6608638e141b23105953547df /net-misc/modemmanager/files
parentb378a551a1a739c5e1f55677c32f57b36f1bb1df (diff)
[modemmanager] added specific built modemmanager
Diffstat (limited to 'net-misc/modemmanager/files')
-rw-r--r--net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules7
1 files changed, 7 insertions, 0 deletions
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";
+ }
+});