Revert "Fix incorrect interface name and improve dbus policy"
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / bluetooth-frwk-gap-agent.conf
1 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
2  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
3 <busconfig>
4     <policy user="root">
5         <!-- service name(org.bt.frwk.p<pid>) is changeable by pid -->
6         <allow own_prefix="org.bt.frwk"/>
7         <allow send_interface="org.bluez.Profile1" send_member="NewConnection"/>
8         <allow send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
9         <!-- No send_destination because private connection does not have well-known service name -->
10         <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
11         <allow send_interface="org.bluez.GattCharacteristic1"/>
12         <allow send_interface="org.bluez.GattDescriptor1"/>
13     </policy>
14     <policy group="network_fw">
15         <!-- service name(org.bt.frwk.p<pid>) is changeable by pid -->
16         <allow own_prefix="org.bt.frwk"/>
17         <allow send_interface="org.bluez.Profile1" send_member="NewConnection"/>
18         <allow send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
19         <!-- No send_destination because private connection does not have well-known service name -->
20         <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
21         <allow send_interface="org.bluez.GattCharacteristic1"/>
22         <allow send_interface="org.bluez.GattDescriptor1"/>
23     </policy>
24     <policy context="default">
25         <deny own_prefix="org.bt.frwk"/>
26         <deny send_interface="org.bluez.Profile1" send_member="NewConnection"/>
27         <deny send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
28     </policy>
29 </busconfig>