blob: b3576313e7776c900ca567dc1c2eb3389b39d67a [file] [log] [blame]
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<!--
Copyright 2021 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.
-->
<busconfig>
<!-- ../system.conf have denied everything, so we just punch some holes -->
<!-- Allow btclient to run as root -->
<policy user="root">
<allow send_destination="org.chromium.bluetooth"/>
<allow send_destination="org.chromium.bluetooth.Manager"/>
<allow send_interface="org.freedesktop.DBus.ObjectManager"/>
<allow send_interface="org.freedesktop.DBus.Properties"/>
</policy>
<policy user="bluetooth">
<!-- Manager policy -->
<allow own="org.chromium.bluetooth.Manager"/>
<allow send_destination="org.chromium.bluetooth.Manager"/>
<allow send_interface="org.chromium.bluetooth.Manager"/>
<allow send_interface="org.chromium.bluetooth.ManagerCallback"/>
<allow send_interface="org.freedesktop.DBus.ObjectManager"/>
<allow send_interface="org.freedesktop.DBus.Properties"/>
<allow send_destination="com.ubuntu.Upstart"
send_interface="com.ubuntu.Upstart0_6.Job"
send_path="/com/ubuntu/Upstart/jobs/btadapterd"/>
<allow send_destination="com.ubuntu.Upstart"
send_interface="com.ubuntu.Upstart0_6.Job"
send_path="/com/ubuntu/Upstart/jobs/bluetoothd"/>
<!-- Adapter policy -->
<allow own="org.chromium.bluetooth" />
<allow send_destination="org.chromium.bluetooth"/>
<allow send_interface="org.chromium.bluetooth.Bluetooth"/>
<allow send_interface="org.chromium.bluetooth.BluetoothCallback"/>
<allow send_interface="org.chromium.bluetooth.BluetoothConnectionCallback"/>
</policy>
<policy user="chronos">
<allow send_destination="org.chromium.bluetooth"/>
<allow send_destination="org.chromium.bluetooth.Manager"/>
<allow send_interface="org.chromium.bluetooth.Bluetooth"/>
<allow send_interface="org.chromium.bluetooth.BluetoothCallback"/>
<allow send_interface="org.chromium.bluetooth.BluetoothConnectionCallback"/>
<allow send_interface="org.chromium.bluetooth.Manager"/>
<allow send_interface="org.chromium.bluetooth.ManagerCallback"/>
<allow send_interface="org.freedesktop.DBus.ObjectManager"/>
<allow send_interface="org.freedesktop.DBus.Properties"/>
</policy>
<policy user="cras">
<allow send_destination="org.chromium.bluetooth"/>
<allow send_destination="org.chromium.bluetooth.Manager"/>
</policy>
<policy context="default">
<deny send_destination="org.chromium.bluetooth"/>
<deny send_destination="org.chromium.bluetooth.Manager"/>
</policy>
</busconfig>