summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-12-17 22:58:21 +0000
committerRichard Hughes <richard@hughsie.com>2010-12-17 22:58:21 +0000
commit1a086b709a436825c6af77d2a1d66b02e9b376eb (patch)
tree5cd96b64f1fe72892e81d6a753691abf7d69da94 /data
parente197d80c8937c622f21f569457d1bbd05746d951 (diff)
downloadcolord-1a086b709a436825c6af77d2a1d66b02e9b376eb.tar.gz
Add initial buildsystem and basic DBus interface definitions
Very much work in progress, the DBus interfaces will still change lots...
Diffstat (limited to 'data')
-rw-r--r--data/.gitignore1
-rw-r--r--data/Makefile.am8
-rw-r--r--data/org.freedesktop.ColorManager.conf29
-rw-r--r--data/org.freedesktop.ColorManager.service.in4
4 files changed, 42 insertions, 0 deletions
diff --git a/data/.gitignore b/data/.gitignore
new file mode 100644
index 0000000..ba73e2b
--- /dev/null
+++ b/data/.gitignore
@@ -0,0 +1 @@
+org.freedesktop.ColorManager.service
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..8583e4c
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,8 @@
+dbusdir = $(sysconfdir)/dbus-1/system.d
+dist_dbus_DATA = org.freedesktop.ColorManager.conf
+
+servicemaindir = $(datadir)/dbus-1/system-services
+dist_servicemain_in_files = org.freedesktop.ColorManager.service.in
+servicemain_DATA = $(servicemain_in_files:.service.in=.service)
+$(servicemain_DATA): $(servicemain_in_files) Makefile
+ @sed -e "s|\@servicedir\@|$(libexecdir)|" $< > $@
diff --git a/data/org.freedesktop.ColorManager.conf b/data/org.freedesktop.ColorManager.conf
new file mode 100644
index 0000000..7634b3f
--- /dev/null
+++ b/data/org.freedesktop.ColorManager.conf
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
+
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- This configuration file specifies the required security policies
+ for the ColorManager to work. -->
+
+ <!-- Only user root can own the ColorManager service -->
+ <policy user="root">
+ <allow own="org.freedesktop.ColorManager"/>
+ </policy>
+
+ <!-- Allow anyone to call into the service - we'll reject callers using PolicyKit -->
+ <policy context="default">
+ <allow send_destination="org.freedesktop.ColorManager"
+ send_interface="org.freedesktop.ColorManager"/>
+ <allow send_destination="org.freedesktop.ColorManager"
+ send_interface="org.freedesktop.ColorManager.Transaction"/>
+ <allow send_destination="org.freedesktop.ColorManager"
+ send_interface="org.freedesktop.DBus.Properties"/>
+ <allow send_destination="org.freedesktop.ColorManager"
+ send_interface="org.freedesktop.DBus.Introspectable"/>
+ </policy>
+
+</busconfig>
+
diff --git a/data/org.freedesktop.ColorManager.service.in b/data/org.freedesktop.ColorManager.service.in
new file mode 100644
index 0000000..70a3d69
--- /dev/null
+++ b/data/org.freedesktop.ColorManager.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.freedesktop.ColorManager
+Exec=@servicedir@/packagekitd
+User=root