aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2013-08-28 17:36:42 +0000
committerTarmac <Unknown>2013-08-28 17:36:42 +0000
commit57a4a0edb15b2933ad4dd0fea59074219f5d8c5b (patch)
tree7fa2345f400443009fa462551887aa3f666745a1 /data
parent770bf58782b33d03b6c32342158710103ca85db7 (diff)
parent6d444beb4392c2116533749fa869b6a1c4c6454a (diff)
downloadayatana-greeter-session-broadcast-57a4a0edb15b2933ad4dd0fea59074219f5d8c5b.tar.gz
ayatana-greeter-session-broadcast-57a4a0edb15b2933ad4dd0fea59074219f5d8c5b.tar.bz2
ayatana-greeter-session-broadcast-57a4a0edb15b2933ad4dd0fea59074219f5d8c5b.zip
Implement the basic service. Adds RequestApplicationStart method which sends out a StartApplication signal.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt10
-rw-r--r--data/com.canonical.Unity.Greeter.Broadcast.conf21
2 files changed, 31 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index b784adb..d00c9ef 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -10,6 +10,16 @@ DESTINATION ${DBUSIFACEDIR}
)
###########################
+# DBus Policy Files
+###########################
+
+install(
+FILES
+com.canonical.Unity.Greeter.Broadcast.conf
+DESTINATION ${DBUSSYSCONFDIR}/dbus-1/system.d
+)
+
+###########################
# Dbus Services
###########################
diff --git a/data/com.canonical.Unity.Greeter.Broadcast.conf b/data/com.canonical.Unity.Greeter.Broadcast.conf
new file mode 100644
index 0000000..8a8cfe6
--- /dev/null
+++ b/data/com.canonical.Unity.Greeter.Broadcast.conf
@@ -0,0 +1,21 @@
+<!-- ../system.conf have denied everything, so we just punch some holes -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <policy user="root">
+ <allow own="com.canonical.Unity.Greeter.Broadcast"/>
+ <allow send_destination="com.canonical.Unity.Greeter.Broadcast"/>
+ </policy>
+
+ <policy user="lightdm">
+ <allow send_destination="com.canonical.Unity.Greeter.Broadcast"/>
+ </policy>
+
+ <policy context="default">
+ <allow send_destination="com.canonical.Unity.Greeter.Broadcast"
+ send_interface="org.freedesktop.DBus.Introspectable"/>
+ </policy>
+
+</busconfig>