Fix eavesdropping config to avoid masking bad dbus configs

BUG=chromium-os:26824
TEST=repro'd chromium-os:26790 on a test system with this config,
demonstrating that it no longer masks the bug. Confirmed
dbus-monitoring still works while doing so. (Tested with
help from jorgelo.) Confirmed the 26790 fix is not regressed by this
either.

Change-Id: I60ce833ffb14a9a709ca6bfecf40221940845aa0
Reviewed-on: https://gerrit.chromium.org/gerrit/16739
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Commit-Ready: Jim Hebert <jimhebert@chromium.org>
Tested-by: Jim Hebert <jimhebert@chromium.org>
This commit is contained in:
Jim Hebert 2012-02-24 12:06:42 -08:00 committed by Gerrit
parent d46beb7f75
commit c858da4ff6

View File

@ -8,9 +8,12 @@ echo "Configuring to enable root access to dbus-monitor"
cat > "${ROOT_FS_DIR}/etc/dbus-1/system-local.conf" <<EOF cat > "${ROOT_FS_DIR}/etc/dbus-1/system-local.conf" <<EOF
<busconfig> <busconfig>
<policy user="root"> <policy context="default">
<allow send_destination="*" eavesdrop="true"/> <!-- All messages may be received by default -->
<allow receive_sender="*" eavesdrop="true"/> <allow receive_requested_reply="false" receive_type="method_call" eavesdrop="true"/>
<allow receive_requested_reply="false" receive_type="method_return" eavesdrop="true"/>
<allow receive_requested_reply="false" receive_type="error" eavesdrop="true"/>
<allow receive_requested_reply="false" receive_type="signal" eavesdrop="true"/>
</policy> </policy>
</busconfig> </busconfig>
EOF EOF