aboutsummaryrefslogtreecommitdiffstats
path: root/community/modemmanager/modemmanager.rules
diff options
context:
space:
mode:
Diffstat (limited to 'community/modemmanager/modemmanager.rules')
-rw-r--r--community/modemmanager/modemmanager.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/community/modemmanager/modemmanager.rules b/community/modemmanager/modemmanager.rules
index 6b4a95fbc8..4c56fb7f9e 100644
--- a/community/modemmanager/modemmanager.rules
+++ b/community/modemmanager/modemmanager.rules
@@ -9,3 +9,11 @@ polkit.addRule(function(action, subject) {
}
});
+// Let geoclue modify ModemManager for location gathering
+polkit.addRule(function(action, subject) {
+ if ((action.id == "org.freedesktop.ModemManager1.Device.Control" ||
+ action.id == "org.freedesktop.ModemManager1.Location") &&
+ subject.isInGroup("geoclue")) {
+ return "yes";
+ }
+});