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>
This commit is contained in:
Dongxiao Xu 2011-02-11 17:05:06 +08:00 committed by Richard Purdie
parent 44e17ea034
commit f87603f2b1
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
include dbus.inc
PR = "r0"
PR = "r1"
SRC_URI[md5sum] = "99cb057700c0455fb68f8d57902f77ac"
SRC_URI[sha256sum] = "caa1a0ded2d0f2e95c1d4ec7e3c8bd44834928c5b0ed41a7189963f3593983bd"