main: Check whether user is allowed to claim a sensor

Check whether a particular user/D-Bus client is allowed to claim a
sensor.

The ClaimCompass method on net.hadess.SensorProxy.Compass doesn't have a
check as only the geoclue user is allowed to access this interface, as
per the D-Bus configuration.
This commit is contained in:
Bastien Nocera
2021-09-29 11:30:52 +02:00
parent abd16b5911
commit 0b1574d0eb
5 changed files with 45 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ variables:
pkgconfig(systemd)
pkgconfig(gio-2.0)
pkgconfig(gudev-1.0)
pkgconfig(polkit-gobject-1)
systemd
gtk3-devel
meson