summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorrobert.ancell@gmail.com <>2010-04-30 11:49:29 +1000
committerrobert.ancell@gmail.com <>2010-04-30 11:49:29 +1000
commit26c05b8567a4108caa4db35b9d646bd4ab812c58 (patch)
tree172c12f97a78f7b2d77d9b39a844d15952997895 /data
parentd8940e7e4206b845754e1b8cae77de5bdac105d4 (diff)
downloadlightdm-26c05b8567a4108caa4db35b9d646bd4ab812c58.tar.gz
Install D-Bus service, use system bus
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am7
-rw-r--r--data/org.gnome.LightDisplayManager.conf24
2 files changed, 31 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 00000000..28367967
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,7 @@
+dbusconfdir = $(DBUS_SYS_DIR)
+dbusconf_DATA = org.gnome.LightDisplayManager.conf
+
+EXTRA_DIST = $(dbusconf_DATA)
+
+DISTCLEANFILES = \
+ Makefile.in
diff --git a/data/org.gnome.LightDisplayManager.conf b/data/org.gnome.LightDisplayManager.conf
new file mode 100644
index 00000000..a6ba7147
--- /dev/null
+++ b/data/org.gnome.LightDisplayManager.conf
@@ -0,0 +1,24 @@
+<!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.LightDisplayManager"/>
+ </policy>
+
+ <!-- Greeter can control -->
+ <policy user="gdm">
+ <allow send_destination="org.gnome.LightDisplayManager"
+ send_interface="org.gnome.LightDisplayManager.Display"/>
+ </policy>
+
+ <policy context="default">
+ <allow send_destination="org.gnome.LightDisplayManager"
+ send_interface="org.gnome.DBus.Properties" />
+ <allow send_destination="org.gnome.LightDisplayManager"
+ send_interface="org.freedesktop.DBus.Introspectable"/>
+ </policy>
+
+</busconfig>