summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>