Setup: adding installation of DBus policy file
authorFrederic PAUT <frederic.paut@linux.intel.com>
Thu, 14 Feb 2013 13:35:03 +0000 (14:35 +0100)
committerFrederic PAUT <frederic.paut@linux.intel.com>
Thu, 14 Feb 2013 13:35:03 +0000 (14:35 +0100)
org.cloudeebus.conf [new file with mode: 0644]
setup.py

diff --git a/org.cloudeebus.conf b/org.cloudeebus.conf
new file mode 100644 (file)
index 0000000..bb2de6b
--- /dev/null
@@ -0,0 +1,14 @@
+<!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="org.cloudeebus"/>
+        <allow send_destination="org.cloudeebus"/>
+    </policy>
+    <policy at_console="true">
+        <allow send_destination="org.cloudeebus"/>
+    </policy>
+    <policy context="default">
+        <deny send_destination="org.cloudeebus"/>
+    </policy>
+ </busconfig>
index dfb0411..9e64089 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,8 @@ setup(name = "cloudeebus",
        license = "http://www.apache.org/licenses/LICENSE-2.0",
        scripts = ["cloudeebus/cloudeebus.py"],
        packages = ["cloudeebus"],
-       data_files = [("cloudeebus" ,["AUTHORS", "README.md", "LICENSE"])],
+       data_files = [("cloudeebus" ,["AUTHORS", "README.md", "LICENSE"]),
+                                ('/etc/dbus-1/system.d/', ['org.cloudeebus.conf'])],
        platforms = ("Any"),
        install_requires = ["setuptools", "autobahn==0.5.2"],
        classifiers = ["License :: OSI Approved :: Apache Software License",