| 1 |
# vim:syntax=apparmor |
| 2 |
abi <abi/3.0>, |
| 3 |
|
| 4 |
include <tunables/global> |
| 5 |
|
| 6 |
/usr/libexec/geoclue flags=(attach_disconnected) { |
| 7 |
include <abstractions/base> |
| 8 |
include <abstractions/dbus-strict> |
| 9 |
include <abstractions/gnome> |
| 10 |
include <abstractions/nameservice> |
| 11 |
|
| 12 |
/etc/geoclue/geoclue.conf r, |
| 13 |
/etc/geoclue/conf.d/ r, |
| 14 |
/etc/geoclue/conf.d/*.conf r, |
| 15 |
/etc/geolocation r, |
| 16 |
/proc/sys/net/ipv6/conf/all/disable_ipv6 r, |
| 17 |
/proc/*/cgroup r, |
| 18 |
/usr/libexec/geoclue mr, |
| 19 |
|
| 20 |
# own dbus name |
| 21 |
dbus bind |
| 22 |
bus=system |
| 23 |
name=org.freedesktop.GeoClue2, |
| 24 |
dbus send |
| 25 |
bus=system |
| 26 |
path=/org/freedesktop/DBus |
| 27 |
interface=org.freedesktop.DBus |
| 28 |
member={RequestName,ReleaseName} |
| 29 |
peer=(name=org.freedesktop.DBus), |
| 30 |
|
| 31 |
# register objects |
| 32 |
dbus (send receive) |
| 33 |
bus=system |
| 34 |
path=/org/freedesktop/GeoClue2{,/**} |
| 35 |
interface={org.freedesktop.GeoClue2{,.*},org.freedesktop.DBus.*}, |
| 36 |
|
| 37 |
# auth |
| 38 |
dbus send |
| 39 |
bus=system |
| 40 |
path=/org/freedesktop/DBus |
| 41 |
interface=org.freedesktop.DBus |
| 42 |
member={GetConnectionUnixUser,GetConnectionUnixProcessID} |
| 43 |
peer=(name=org.freedesktop.DBus), |
| 44 |
|
| 45 |
# use Avahi |
| 46 |
dbus send |
| 47 |
bus=system |
| 48 |
path=/ |
| 49 |
interface=org.freedesktop.DBus.Peer |
| 50 |
member=Ping |
| 51 |
peer=(name=org.freedesktop.Avahi), |
| 52 |
dbus send |
| 53 |
bus=system |
| 54 |
path=/ |
| 55 |
interface=org.freedesktop.Avahi.Server |
| 56 |
peer=(name=org.freedesktop.Avahi), |
| 57 |
dbus (send receive) |
| 58 |
bus=system |
| 59 |
path=/Client[0-9]*/ServiceBrowser[0-9]* |
| 60 |
interface=org.freedesktop.Avahi.ServiceBrowser, |
| 61 |
|
| 62 |
# use wpa_supplicant |
| 63 |
dbus (send receive) |
| 64 |
bus=system |
| 65 |
path=/fi/w1/wpa_supplicant1{,/**} |
| 66 |
interface={fi.w1.wpa_supplicant1{,.*},org.freedesktop.DBus.Properties}, |
| 67 |
dbus receive |
| 68 |
bus=system |
| 69 |
path=/org/freedesktop |
| 70 |
interface=org.freedesktop.DBus.ObjectManager |
| 71 |
member=InterfacesRemoved, |
| 72 |
|
| 73 |
# use ModemManager |
| 74 |
dbus send |
| 75 |
bus=system |
| 76 |
path=/org/freedesktop/ModemManager1 |
| 77 |
interface={org.freedesktop.DBus.ObjectManager,org.freedesktop.DBus.Properties}, |
| 78 |
|
| 79 |
# use NetworkManager |
| 80 |
dbus send |
| 81 |
bus=system |
| 82 |
path=/org/freedesktop |
| 83 |
interface=org.freedesktop.DBus.ObjectManager |
| 84 |
member=GetManagedObjects, |
| 85 |
dbus (send receive) |
| 86 |
bus=system |
| 87 |
path=/org/freedesktop/NetworkManager{,/**} |
| 88 |
interface={org.freedesktop.NetworkManager{,.*},org.freedesktop.DBus.Properties}, |
| 89 |
|
| 90 |
|
| 91 |
# Site-specific additions and overrides. See local/README for details. |
| 92 |
#include if exists <local/usr.libexec.geoclue> |
| 93 |
} |