1<!DOCTYPE busconfig PUBLIC
2 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
3 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
4<!--
5  Copyright (C) 2023 The Android Open Source Project
6
7  Licensed under the Apache License, Version 2.0 (the "License");
8  you may not use this file except in compliance with the License.
9  You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13  Unless required by applicable law or agreed to in writing, software
14  distributed under the License is distributed on an "AS IS" BASIS,
15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  See the License for the specific language governing permissions and
17  limitations under the License.
18-->
19<busconfig>
20  <!-- User mmc_service owns the interface
21       org.chromium.mmc.CodecManager. -->
22  <policy user="mmc_service">
23    <allow own="org.chromium.mmc.CodecManager" />
24  </policy>
25
26  <policy user="bluetooth">
27    <!--User bluetooth can send messages to the owner of the given service
28        and call CodecInit or CodecCleanUp from the interface
29        org.chromium.mmc.CodecManager.-->
30    <allow send_destination="org.chromium.mmc.CodecManager"
31           send_interface="org.chromium.mmc.CodecManager"
32           send_member="CodecInit" />
33    <allow send_destination="org.chromium.mmc.CodecManager"
34           send_interface="org.chromium.mmc.CodecManager"
35           send_member="CodecCleanUp" />
36  </policy>
37
38  <!-- For testing. -->
39  <policy user="root">
40    <allow send_destination="org.chromium.mmc.CodecManager"
41           send_interface="org.chromium.mmc.CodecManager"
42           send_member="CodecInit"/>
43    <allow send_destination="org.chromium.mmc.CodecManager"
44           send_interface="org.chromium.mmc.CodecManager"
45           send_member="CodecCleanUp" />
46  </policy>
47</busconfig>
48