diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-02-11 17:05:06 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-14 12:20:53 +0000 |
commit | f87603f2b1a43ba5277b89e090e12bae7f7281f1 (patch) | |
tree | 126cdbaed06b06a24fadeb87590a9385bb2d17ad /meta | |
parent | 44e17ea034bec68d4fff6b2cd4758bad3ab7ed09 (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 4 | ||||
-rw-r--r-- | 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 da77819c3b..1ef0d8fcfd 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc | |||
@@ -53,7 +53,9 @@ pkg_postinst_dbus() { | |||
53 | --ingroup "$MESSAGEUSER" "$MESSAGEUSER" | 53 | --ingroup "$MESSAGEUSER" "$MESSAGEUSER" |
54 | 54 | ||
55 | grep -q netdev: /etc/group || addgroup netdev | 55 | grep -q netdev: /etc/group || addgroup netdev |
56 | chmod u+s /usr/libexec/dbus-daemon-launch-helper | 56 | |
57 | chown root:"$MESSAGEUSER" /usr/libexec/dbus-daemon-launch-helper | ||
58 | chmod 4754 /usr/libexec/dbus-daemon-launch-helper | ||
57 | 59 | ||
58 | # add volatile after new user/grp are created | 60 | # add volatile after new user/grp are created |
59 | echo "d messagebus messagebus 0755 /var/run/dbus none" > /etc/default/volatiles/99_dbus | 61 | 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 7c5627bc4f..f16d9f2904 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 @@ | |||
1 | include dbus.inc | 1 | include dbus.inc |
2 | 2 | ||
3 | PR = "r0" | 3 | PR = "r1" |
4 | 4 | ||
5 | SRC_URI[md5sum] = "99cb057700c0455fb68f8d57902f77ac" | 5 | SRC_URI[md5sum] = "99cb057700c0455fb68f8d57902f77ac" |
6 | SRC_URI[sha256sum] = "caa1a0ded2d0f2e95c1d4ec7e3c8bd44834928c5b0ed41a7189963f3593983bd" | 6 | SRC_URI[sha256sum] = "caa1a0ded2d0f2e95c1d4ec7e3c8bd44834928c5b0ed41a7189963f3593983bd" |