aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dbus/dbus.inc
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-02-11 17:05:06 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-14 12:20:53 +0000
commitf87603f2b1a43ba5277b89e090e12bae7f7281f1 (patch)
tree126cdbaed06b06a24fadeb87590a9385bb2d17ad /meta/recipes-core/dbus/dbus.inc
parent44e17ea034bec68d4fff6b2cd4758bad3ab7ed09 (diff)
downloadopenembedded-core-contrib-f87603f2b1a43ba5277b89e090e12bae7f7281f1.tar.gz
dbus: change owner and mode for dbus-daemon-launch-helper in postinst
Add code in dbus postinst to change owner and mode for dbus-daemon-launch-helper. [BUGID #603] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-core/dbus/dbus.inc')
-rw-r--r--meta/recipes-core/dbus/dbus.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index da77819c3b..1ef0d8fcfd 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