summaryrefslogtreecommitdiff
path: root/hal.conf.in
blob: 81577c52f91788241480db8f435a4df4572f4c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>


  <!-- This configuration file specifies the required security policies
       for the HAL to work. -->

  <!-- Only user @HAL_USER@ can own the HAL service and be an agent -->
  <policy user="@HAL_USER@">
    <allow own="org.freedesktop.Hal"/>

    <allow send_interface="org.freedesktop.Hal.AgentManager"
           send_destination="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.AgentManager"
           receive_sender="org.freedesktop.Hal"/>
  </policy>

  <!-- Only root can use the Linux.Hotplug interface -->
  <policy user="root">
    <allow send_interface="org.freedesktop.Hal.Linux.Hotplug"
           send_destination="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Linux.Hotplug"
           receive_sender="org.freedesktop.Hal"/>
  </policy>

  <!-- Any user in the @HAL_GROUP@ group can use the AgentManager interface -->
  <!-- policy group="@HAL_GROUP@" Doesn't work on dbus 0.20. Works in CVS -->
  <policy user="root">
    <allow send_interface="org.freedesktop.Hal.AgentManager"
           send_destination="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.AgentManager"
           receive_sender="org.freedesktop.Hal"/>
  </policy>

  <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
  <policy context="default">
    <allow send_interface="org.freedesktop.Hal.Manager"/>
    <allow send_interface="org.freedesktop.Hal.Device"/>

    <allow receive_interface="org.freedesktop.Hal.Manager"
           receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device"
           receive_sender="org.freedesktop.Hal"/>
  </policy>

</busconfig>