mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
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:
parent
49a8e9687f
commit
a63da3a776
16
mod_for_test_scripts/760enableDbusMonitor
Executable file
16
mod_for_test_scripts/760enableDbusMonitor
Executable 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
|
Loading…
Reference in New Issue
Block a user