mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
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>
17 lines
463 B
Bash
Executable File
17 lines
463 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 user="root">
|
|
<allow send_destination="*" eavesdrop="true"/>
|
|
<allow receive_sender="*" eavesdrop="true"/>
|
|
</policy>
|
|
</busconfig>
|
|
EOF
|