aboutsummaryrefslogtreecommitdiffstats
path: root/community/sxmo-utils/rootfs-etc-polkit-1-rules.d-00-sxmo.rules
diff options
context:
space:
mode:
Diffstat (limited to 'community/sxmo-utils/rootfs-etc-polkit-1-rules.d-00-sxmo.rules')
-rw-r--r--community/sxmo-utils/rootfs-etc-polkit-1-rules.d-00-sxmo.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/community/sxmo-utils/rootfs-etc-polkit-1-rules.d-00-sxmo.rules b/community/sxmo-utils/rootfs-etc-polkit-1-rules.d-00-sxmo.rules
new file mode 100644
index 0000000000..c1b52ddaad
--- /dev/null
+++ b/community/sxmo-utils/rootfs-etc-polkit-1-rules.d-00-sxmo.rules
@@ -0,0 +1,7 @@
+polkit.addRule(function(action, subject) {
+ if (action.id.indexOf("org.freedesktop.ModemManager1.") == 0 &&
+ subject.isInGroup("plugdev")) {
+
+ return polkit.Result.YES;
+ }
+});