Skip to content

community/modemmanager: fix polkit rules for GeoClue integration

Current polkit rules block GeoClue from interacting with ModemManager when a location request is received by GeoClue. Allow GeoClue to use the org.freedesktop.ModemManager1.Device.Control and org.freedesktop.ModemManager1.Location DBus APIs.

Without this patch, GeoClue complains in its logs with:

Geoclue-WARNING **: 16:54:28.744: Failed to set GPS refresh rate: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: PolicyKit authorization failed: not authorized for 'org.freedesktop.ModemManager1.Device.Control'
Geoclue-WARNING **: 16:54:28.760: Failed to enable GPS: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: PolicyKit authorization failed: not authorized for 'org.freedesktop.ModemManager1.Device.Control'
Geoclue-WARNING **: 16:54:28.776: Failed to enable 3GPP: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: PolicyKit authorization failed: not authorized for 'org.freedesktop.ModemManager1.Device.Control'
Geoclue-WARNING **: 16:56:28.688: Failed to set GPS refresh rate: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: PolicyKit authorization failed: not authorized for 'org.freedesktop.ModemManager1.Device.Control'
Geoclue-WARNING **: 16:55:58.639: Failed to disable 3GPP: GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: PolicyKit authorization failed: not authorized for 'org.freedesktop.ModemManager1.Device.Control'
Edited by Dylan Van Assche

Merge request reports