summaryrefslogtreecommitdiff
path: root/org.freedesktop.SystemToolsBackends.conf
blob: f11bbd1335cf58d8d490beeebab63d26ccf3266d (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!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">
    <!-- Do not allow owning this name to regular users -->
    <deny own="org.freedesktop.SystemToolsBackends"/>

    <!-- Uncomment this if you want to test configuration modules with a harmless user -->
    <!--
    <allow own="org.freedesktop.SystemToolsBackends.GroupConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.GroupsConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.HostsConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.IfacesConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.NFSConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.NTPConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.ServiceConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.ServicesConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.SMBConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.TimeConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.UserConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.UsersConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.SelfConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.Platform"/>
    <allow send_interface="org.freedesktop.SystemToolsBackends.Platform" send_member="getPlatform"/>
    -->

    <!-- Only allow talking to the dispatcher -->
    <allow send_destination="org.freedesktop.SystemToolsBackends"/>
  </policy>

  <policy user="0">
    <!-- only root is allowed to run the dispatcher -->
    <allow own="org.freedesktop.SystemToolsBackends"/>

    <!-- also allow it to own the configuration modules -->
    <allow own="org.freedesktop.SystemToolsBackends.GroupConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.GroupsConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.HostsConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.IfacesConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.NFSConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.NTPConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.ServiceConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.ServicesConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.SMBConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.TimeConfig"/>
    <allow own="org.freedesktop.SystemToolsBackends.UserConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.UsersConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.SelfConfig2"/>
    <allow own="org.freedesktop.SystemToolsBackends.Platform"/>

    <!-- be able to speak to configuration modules,
         so any message to them has to go through the dispatcher -->
    <allow send_interface="org.freedesktop.SystemToolsBackends"/>
    <allow send_interface="org.freedesktop.SystemToolsBackends.Platform"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.Platform"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.GroupConfig2"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.GroupsConfig2"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.HostsConfig"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.IfacesConfig"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.NFSConfig"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.NTPConfig"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.ServiceConfig2"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.ServicesConfig"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.SMBConfig"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.TimeConfig"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.UserConfig2"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.UsersConfig2"/>
    <allow send_destination="org.freedesktop.SystemToolsBackends.SelfConfig2"/>
  </policy>
</busconfig>