diff options
author | Brad Bishop <bradleyb@us.ibm.com> | 2015-09-25 17:23:09 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2015-09-29 21:58:54 +0300 |
commit | ef552f65c3d54126b5ecc813bdd7265ed8f33e4b (patch) | |
tree | 33d4c94337c0e0b0f7ac761842f3067bc018b8f1 | |
parent | b413d571a0c3830112e13eb87a42964a34807a6f (diff) | |
download | openbmc-ef552f65c3d54126b5ecc813bdd7265ed8f33e4b.tar.xz |
Open up DBUS permissions
Make wide open during prototyping phase.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
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> |