blob: 9e4e862fb8eee41fcb49154433955ed564063aca [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 2018 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.
This file will be installed at /etc/dbus-1/system.d on Chromium OS.
-->
<busconfig>
<policy user="ml-service-dbus">
<allow own="org.chromium.MachineLearning" />
<allow receive_sender="org.chromium.DlcService" />
<allow send_destination="org.chromium.DlcService"
send_interface="org.chromium.DlcServiceInterface"
send_member="GetDlcState" />
</policy>
<policy user="chronos">
<!-- methods allowed -->
<allow send_destination="org.chromium.MachineLearning"
send_interface="org.chromium.MachineLearning"
send_member="BootstrapMojoConnection" />
</policy>
<policy user="ml-service">
<!-- for dbus service instances -->
<allow own="org.chromium.MachineLearning.AdaptiveCharging" />
</policy>
<policy user="power">
<!-- allow powerd to call adaptive charging -->
<allow send_destination="org.chromium.MachineLearning.AdaptiveCharging"
send_interface="org.chromium.MachineLearning.AdaptiveCharging"
send_member="RequestAdaptiveChargingDecision" />
</policy>
<policy user="root">
<!-- methods allowed for testing purpose-->
<allow send_destination="org.chromium.MachineLearning.AdaptiveCharging"
send_interface="org.chromium.MachineLearning.AdaptiveCharging"
send_member="RequestAdaptiveChargingDecision" />
</policy>
</busconfig>