[poky] [PATCH 2/2] dbus: change owner and mode for dbus-daemon-launch-helper in postinst
Dongxiao Xu
dongxiao.xu at intel.com
Sun Feb 13 23:49:45 PST 2011
From: Dongxiao Xu <dongxiao.xu at intel.com>
Add code in dbus postinst to change owner and mode for
dbus-daemon-launch-helper.
[BUGID #603]
Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
---
meta/recipes-core/dbus/dbus.inc | 4 +++-
meta/recipes-core/dbus/dbus_1.4.1.bb | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index da77819..1ef0d8f 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -53,7 +53,9 @@ pkg_postinst_dbus() {
--ingroup "$MESSAGEUSER" "$MESSAGEUSER"
grep -q netdev: /etc/group || addgroup netdev
- chmod u+s /usr/libexec/dbus-daemon-launch-helper
+
+ chown root:"$MESSAGEUSER" /usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /usr/libexec/dbus-daemon-launch-helper
# add volatile after new user/grp are created
echo "d messagebus messagebus 0755 /var/run/dbus none" > /etc/default/volatiles/99_dbus
diff --git a/meta/recipes-core/dbus/dbus_1.4.1.bb b/meta/recipes-core/dbus/dbus_1.4.1.bb
index 7c5627b..f16d9f2 100644
--- a/meta/recipes-core/dbus/dbus_1.4.1.bb
+++ b/meta/recipes-core/dbus/dbus_1.4.1.bb
@@ -1,6 +1,6 @@
include dbus.inc
-PR = "r0"
+PR = "r1"
SRC_URI[md5sum] = "99cb057700c0455fb68f8d57902f77ac"
SRC_URI[sha256sum] = "caa1a0ded2d0f2e95c1d4ec7e3c8bd44834928c5b0ed41a7189963f3593983bd"
--
1.6.3.3
More information about the poky
mailing list