summaryrefslogtreecommitdiff
path: root/data/gdm.conf.in
blob: bda973339bc5c0d3a587333b7749d9c454af4f24 (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
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Only root can own the service -->
  <policy user="root">
    <allow own="org.gnome.DisplayManager"/>

    <allow send_interface="org.gnome.DisplayManager.Manager"/>
    <allow send_interface="org.gnome.DisplayManager.Display"/>
    <allow send_interface="org.gnome.DisplayManager.LocalDisplayFactory"/>
    <allow send_interface="org.gnome.DisplayManager.Settings"/>
    <allow send_interface="org.gnome.DisplayManager.Slave"/>
    <allow send_interface="org.gnome.DisplayManager.Session"/>
    <allow send_destination="org.gnome.DisplayManager"
           send_interface="org.gnome.DBus.Properties" />
  </policy>

  <policy context="default">
    <deny send_interface="org.gnome.DisplayManager.Manager"/>
    <deny send_interface="org.gnome.DisplayManager.Display"/>
    <deny send_interface="org.gnome.DisplayManager.LocalDisplayFactory"/>
    <deny send_interface="org.gnome.DisplayManager.Settings"/>
    <deny send_interface="org.gnome.DisplayManager.Slave"/>
    <deny send_interface="org.gnome.DisplayManager.Session"/>
    <deny send_destination="org.gnome.DisplayManager"
          send_interface="org.gnome.DBus.Properties" />

    <allow send_interface="org.gnome.DisplayManager.Display"
           send_member="GetId"/>
    <allow send_interface="org.gnome.DisplayManager.Display"
           send_member="GetRemoteHostname"/>
    <allow send_interface="org.gnome.DisplayManager.Display"
           send_member="GetSeatId"/>
    <allow send_interface="org.gnome.DisplayManager.Display"
           send_member="GetX11DisplayName"/>
    <allow send_interface="org.gnome.DisplayManager.Display"
           send_member="GetX11DisplayNumber"/>
    <allow send_interface="org.gnome.DisplayManager.Display"
           send_member="IsLocal"/>

    <allow send_interface="org.gnome.DisplayManager.LocalDisplayFactory"
           send_member="CreateTransientDisplay"/>

    <allow send_interface="org.gnome.DisplayManager.Manager"
           send_member="GetDisplays"/>

  </policy>

  <policy user="@GDM_USERNAME@">
    <allow send_interface="org.gnome.DisplayManager.Manager"/>
    <allow send_interface="org.gnome.DisplayManager.Display"/>
    <allow send_interface="org.gnome.DisplayManager.LocalDisplayFactory"/>
    <allow send_interface="org.gnome.DisplayManager.Settings"/>
    <allow send_destination="org.gnome.DisplayManager"
           send_interface="org.gnome.DBus.Properties" />
  </policy>

</busconfig>