aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
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>