summaryrefslogtreecommitdiffstats
path: root/meta-phosphor
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2015-09-25 10:23:09 -0400
committerPatrick Williams <patrick@stwcx.xyz>2015-09-29 13:58:54 -0500
commitef552f65c3d54126b5ecc813bdd7265ed8f33e4b (patch)
tree33d4c94337c0e0b0f7ac761842f3067bc018b8f1 /meta-phosphor
parentb413d571a0c3830112e13eb87a42964a34807a6f (diff)
downloadtalos-openbmc-ef552f65c3d54126b5ecc813bdd7265ed8f33e4b.tar.gz
talos-openbmc-ef552f65c3d54126b5ecc813bdd7265ed8f33e4b.zip
Open up DBUS permissions
Make wide open during prototyping phase. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass2
-rw-r--r--meta-phosphor/common/recipes-phosphor/dbus-perms/dbus-perms.bb12
-rw-r--r--meta-phosphor/common/recipes-phosphor/dbus-perms/files/org.openbmc.conf8
3 files changed, 22 insertions, 0 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
index 1b175ea79..e6132faa7 100644
--- a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
@@ -2,6 +2,8 @@
# Class users should define DBUS_SERVICES prior to including.
+RDEPENDS_${PN} += "dbus-perms"
+
python() {
services = d.getVar('DBUS_SERVICES', True)
if services:
diff --git a/meta-phosphor/common/recipes-phosphor/dbus-perms/dbus-perms.bb b/meta-phosphor/common/recipes-phosphor/dbus-perms/dbus-perms.bb
new file mode 100644
index 000000000..c7b788426
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/dbus-perms/dbus-perms.bb
@@ -0,0 +1,12 @@
+SUMMARY = "Phosphor OpenBMC DBUS Permissions"
+DESCRIPTION = "Phosphor OpenBMC DBUS Permissions."
+HOMEPAGE = "http://github.com/openbmc/"
+PR = "r1"
+
+inherit allarch
+inherit obmc-phosphor-license
+inherit obmc-phosphor-dbus-service
+
+DBUS_SERVICES += " \
+ org.openbmc \
+ "
diff --git a/meta-phosphor/common/recipes-phosphor/dbus-perms/files/org.openbmc.conf b/meta-phosphor/common/recipes-phosphor/dbus-perms/files/org.openbmc.conf
new file mode 100644
index 000000000..b51293b19
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/dbus-perms/files/org.openbmc.conf
@@ -0,0 +1,8 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy context="default">
+ <allow own="*"/>
+ <allow send_destination="*"/>
+ </policy>
+</busconfig>
OpenPOWER on IntegriCloud