mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
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:
parent
d46beb7f75
commit
c858da4ff6
@ -8,9 +8,12 @@ echo "Configuring to enable root access to dbus-monitor"
|
||||
|
||||
cat > "${ROOT_FS_DIR}/etc/dbus-1/system-local.conf" <<EOF
|
||||
<busconfig>
|
||||
<policy user="root">
|
||||
<allow send_destination="*" eavesdrop="true"/>
|
||||
<allow receive_sender="*" eavesdrop="true"/>
|
||||
<policy context="default">
|
||||
<!-- All messages may be received by default -->
|
||||
<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>
|
||||
</busconfig>
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user