Make mod-for-test enable full root usage of dbus-monitor

BUG=chromium-os:23903
TEST=full build of x86-zgb, mod_for_test, boot; run dbus-monitor
on tty2 as root, log in, switch back and observe all the dbus
traffic.

Change-Id: Iccdb47bec97260108c73cf346c91c2d9e8c2bc18
Reviewed-on: https://gerrit.chromium.org/gerrit/12593
Commit-Ready: Jim Hebert <jimhebert@chromium.org>
Reviewed-by: Jim Hebert <jimhebert@chromium.org>
Tested-by: Jim Hebert <jimhebert@chromium.org>
This commit is contained in:
Jim Hebert 2011-12-07 15:51:51 -08:00 committed by Gerrit
parent 49a8e9687f
commit a63da3a776

View File

@ -0,0 +1,16 @@
#!/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 user="root">
<allow send_destination="*" eavesdrop="true"/>
<allow receive_sender="*" eavesdrop="true"/>
</policy>
</busconfig>
EOF