diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-28 20:46:53 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-28 20:46:53 +0000 |
commit | e941907f6680d056ca5bf8dceb454a0b238d6d36 (patch) | |
tree | 66ab82a7c6768c47e07ba2fa901fe723a537eb59 /net-misc/modemmanager/files | |
parent | e1a7424e3b14e05e4cbb33428f823fd3ac8986a6 (diff) |
net-misc/{network,modem}manager : import from gentoo tree
Diffstat (limited to 'net-misc/modemmanager/files')
-rw-r--r-- | net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules | 7 |
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"; + } +}); |