mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
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>
20 lines
769 B
Bash
Executable File
20 lines
769 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
echo "Configuring to enable root access to dbus-monitor"
|
|
|
|
cat > "${ROOT_FS_DIR}/etc/dbus-1/system-local.conf" <<EOF
|
|
<busconfig>
|
|
<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
|