org.freedesktop.GeoClue2.conf.in 1.4 KB
Newer Older
Zeeshan Ali's avatar
Zeeshan Ali committed
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <policy context="default">
    <!-- Allow everyone to talk to main service. We'll later add an agent to
         only share the location if user allows it. -->
    <allow send_destination="org.freedesktop.GeoClue2"/>
  </policy>

11 12
  <policy user="@dbus_srv_user@">
    <!-- Only allow @dbus_srv_user@ to own the name on the bus -->
Zeeshan Ali's avatar
Zeeshan Ali committed
13
    <allow own="org.freedesktop.GeoClue2"/>
14

15 16 17 18 19 20 21 22 23 24 25 26 27 28
    <!-- Also give @dbus_srv_user@ access to wpa_supplicant API -->
    <allow receive_sender="fi.w1.wpa_supplicant1"
           receive_type="signal"/>

    <allow send_destination="fi.w1.wpa_supplicant1"
           send_interface="org.freedesktop.DBus.Properties"
           send_member="Get"/>

    <allow send_destination="fi.w1.wpa_supplicant1"
           send_interface="org.freedesktop.DBus.Properties"
           send_member="GetAll"/>

    <allow send_destination="fi.w1.wpa_supplicant1"
           send_interface="org.freedesktop.DBus.Introspectable"/>
29 30 31 32 33

    <allow send_destination="fi.w1.wpa_supplicant1"
           send_interface="fi.w1.wpa_supplicant1.Interface"
           send_type="method_call"
           send_member="Scan"/>
Zeeshan Ali's avatar
Zeeshan Ali committed
34
  </policy>
35 36 37 38 39

  <policy user="root">
    <!-- Allow root to own the name on the bus -->
    <allow own="org.freedesktop.GeoClue2"/>
  </policy>
Zeeshan Ali's avatar
Zeeshan Ali committed
40
</busconfig>