From 1f7119d8aa3e37e2a29ad8990c8e91472a70a3a5 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 30 Nov 2017 22:31:14 -0800 Subject: [PATCH] libhomescreen-2017: correct dbus permissions to allow statusbar access Settings application using bluetooth + wifi bindings was able to change HMI status because of invalid dbus permissions access Bug-AGL: SPEC-1150 Change-Id: Id730c67dc8e20dfc38424247fe68ce16939aff8b Signed-off-by: Matt Ranostay --- .../libhomescreen-2017/org.agl.statusbar.conf | 16 ++++++++++++++++ recipes-demo-hmi/libhomescreen/libhomescreen-2017_git.bb | 9 ++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 recipes-demo-hmi/libhomescreen/libhomescreen-2017/org.agl.statusbar.conf diff --git a/recipes-demo-hmi/libhomescreen/libhomescreen-2017/org.agl.statusbar.conf b/recipes-demo-hmi/libhomescreen/libhomescreen-2017/org.agl.statusbar.conf new file mode 100644 index 000000000..dc3852eee --- /dev/null +++ b/recipes-demo-hmi/libhomescreen/libhomescreen-2017/org.agl.statusbar.conf @@ -0,0 +1,16 @@ + + + + + + + + + + + + + diff --git a/recipes-demo-hmi/libhomescreen/libhomescreen-2017_git.bb b/recipes-demo-hmi/libhomescreen/libhomescreen-2017_git.bb index 4ef42ee6c..b78f2f56e 100644 --- a/recipes-demo-hmi/libhomescreen/libhomescreen-2017_git.bb +++ b/recipes-demo-hmi/libhomescreen/libhomescreen-2017_git.bb @@ -12,9 +12,16 @@ DEPENDS = "af-binder json-c" inherit cmake -SRC_URI = "git://gerrit.automotivelinux.org/gerrit/p/src/libhomescreen.git;protocol=https;branch=${AGL_BRANCH}" +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/p/src/libhomescreen.git;protocol=https;branch=${AGL_BRANCH} \ + file://org.agl.statusbar.conf \ + " SRCREV = "d97eb6052b7652a42d502e5887bd7acf3fc6d91b" S = "${WORKDIR}/git" +do_install_append() { + mkdir -p ${D}${sysconfdir}/dbus-1/session.d + install -m 0644 ${WORKDIR}/org.agl.statusbar.conf ${D}${sysconfdir}/dbus-1/session.d +} + RDEPENDS_${PN} = "agl-service-homescreen-2017" PROVIDES += "virtual/libhomescreen" -- 2.16.6