#1095804 geoclue-2.0: apparmor deny access

Package:
geoclue-2.0
Source:
geoclue-2.0
Description:
geoinformation service
Submitter:
TheNino
Date:
2025-02-12 09:03:02 UTC
Severity:
normal
#1095804#5
Date:
2025-02-12 08:59:23 UTC
From:
To:
Dear Maintainer,

dmesg reports that /usr/libexec/geoclue got denied read request from apparmor
during boot

audit: type=1400 audit(1739348245.824:51): apparmor="DENIED" operation="open"
class="file" profile="/usr/libexec/geoclue" name="/etc/os-release" pid=2715
comm="geoclue" requested_mask="r" denied_mask="r" fsuid=108 ouid=0

executing "systemctl status geoclue.service" gives the following output

● geoclue.service - Location Lookup Service
     Loaded: loaded (/usr/lib/systemd/system/geoclue.service; static)
     Active: active (running) since Wed 2025-02-12 09:17:25 CET; 39min ago
 Invocation: 7a1f41f606604d6fa87370cae9ca28ab
   Main PID: 2715 (geoclue)
      Tasks: 4 (limit: 37598)
     Memory: 10.8M (peak: 12.7M)
        CPU: 210ms
     CGroup: /system.slice/geoclue.service
             └─2715 /usr/libexec/geoclue

feb 12 09:17:25 lunarlake systemd[1]: Starting geoclue.service - Location
Lookup Service...
feb 12 09:17:25 lunarlake systemd[1]: Started geoclue.service - Location Lookup
Service.
feb 12 09:17:30 lunarlake geoclue[2715]: Failed to query location: No WiFi
networks found
feb 12 09:17:30 lunarlake geoclue[2715]: Failed to query location: No WiFi
networks found

However, the where-am-i demo works and checking the status after restarting the
service gives

● geoclue.service - Location Lookup Service
     Loaded: loaded (/usr/lib/systemd/system/geoclue.service; static)
     Active: active (running) since Wed 2025-02-12 09:57:40 CET; 1s ago
 Invocation: c8a27a0537a74d5db9bd04e300be5506
   Main PID: 5601 (geoclue)
      Tasks: 9 (limit: 37598)
     Memory: 3.3M (peak: 4.4M)
        CPU: 35ms
     CGroup: /system.slice/geoclue.service
             └─5601 /usr/libexec/geoclue

feb 12 09:57:40 lunarlake systemd[1]: Starting geoclue.service - Location
Lookup Service...
feb 12 09:57:40 lunarlake systemd[1]: Started geoclue.service - Location Lookup
Service.