Fix own_prefix tag duplication issue
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / bluetooth-frwk-gap-agent.conf
index b76e79c..f577155 100644 (file)
@@ -2,30 +2,20 @@
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
     <policy user="root">
-        <!-- service name(org.bt.frwk.p<pid>) is changeable by pid -->
-        <allow own_prefix="org.bt.frwk"/>
-        <allow send_interface="org.bluez.GattCharacteristic1"/>
-           <allow send_destination="org.bluez"/>
-        <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
-        <allow send_interface="org.bluez.Profile1" send_member="NewConnection"/>
-        <allow send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
+        <allow send_destination_prefix="org.bt.frwk"/>
+        <allow send_destination_prefix="org.frwk.gatt_service"/>
     </policy>
     <policy group="network_fw">
-        <!-- service name(org.bt.frwk.p<pid>) is changeable by pid -->
-        <allow own_prefix="org.bt.frwk"/>
-        <allow send_interface="org.bluez.GattCharacteristic1"/>
-           <allow send_destination="org.bluez"/>
-        <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
-        <allow send_interface="org.bluez.Profile1" send_member="NewConnection"/>
-        <allow send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
+        <allow send_destination_prefix="org.bt.frwk"/>
+        <allow own_prefix="org.frwk.gatt_service"/>
+        <allow send_destination_prefix="org.frwk.gatt_service"/>
     </policy>
     <policy context="default">
         <deny own_prefix="org.bt.frwk"/>
-        <deny send_interface="org.bluez.GattCharacteristic1"/>
-       <deny send_destination="org.bluez"/>
-       <deny send_interface="org.freedesktop.DBus.ObjectManager"/>
-        <deny send_interface="org.bluez.Profile1" send_member="NewConnection"/>
-        <deny send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
+        <allow own_prefix="org.bt.frwk"/>
+        <deny send_destination_prefix="org.bt.frwk" send_interface="org.bluez.Profile1"/>
+        <deny own_prefix="org.frwk.gatt_service"/>
+        <deny send_destination_prefix="org.frwk.gatt_service" send_interface="org.bluez.GattDescriptor1"/>
+        <deny send_destination_prefix="org.frwk.gatt_service" send_interface="org.bluez.GattCharacteristic1"/>
     </policy>
 </busconfig>
-