Update dbus conf for Agent1 96/183896/1
authorSeungyoun Ju <sy39.ju@samsung.com>
Thu, 12 Jul 2018 05:50:37 +0000 (14:50 +0900)
committerSeungyoun Ju <sy39.ju@samsung.com>
Thu, 12 Jul 2018 06:53:21 +0000 (15:53 +0900)
[Problem] Below calls are not blocked in sdb default user shell
 $ dbus-send --system --type=method_call --print-reply --dest=org.projectx.bt /org/tizen/adapter_agent org.bluez.Agent1.RequestPinCode objpath:/org/bluez/hci0/dev_78_F7_BE_91_30_26
 $ dbus-send --system --type=method_call --print-reply --dest=org.projectx.bt /org/tizen/adapter_agent org.bluez.Agent1.ReplyAuthorize uint32:0
[Cause & Measure] Some rules are already specified by other bus conf.
 And same destination and different rules exist in multiple files.
 So this patch adds more specific target to rules and removes duplicated
 ones.
[Checking Method] Call dbus method

Change-Id: I71e4ea31cb5539456632aa9a7ec17ea9019fdec6

bt-oal/bluez_hal/bluetooth-frwk-gap-agent.conf
bt-service-adaptation/bluetooth-frwk-service.conf.in
bt-service/bluetooth-frwk-service.conf.in

index fb33c3e..d75e874 100644 (file)
@@ -10,8 +10,6 @@
        <allow send_interface="org.bluez.Profile1"/>
     </policy>
     <policy context="default">
-        <deny own="org.bluez.Agent1"/>
-        <allow receive_sender="org.bluez.Agent1"/>
         <check send_destination="org.projectx.bt" send_interface="org.bluez.Agent1" privilege="http://tizen.org/privilege/bluetooth.admin"/>
     </policy>
 </busconfig>
index 5cc7298..7dffda7 100644 (file)
@@ -9,7 +9,7 @@
     </policy>
     <policy context="default">
         <deny own="org.projectx.bt"/>
-        <allow send_destination="org.projectx.bt"/>
+        <allow send_destination="org.projectx.bt" send_interface="org.projectx.bt"/>
         <allow send_destination="org.projectx.bt_event"/>
         <allow send_destination="org.projectx.bluetooth.share"/>
         <allow send_destination="org.tizen.csd.Call.Instance"/>
index 5cc7298..7dffda7 100644 (file)
@@ -9,7 +9,7 @@
     </policy>
     <policy context="default">
         <deny own="org.projectx.bt"/>
-        <allow send_destination="org.projectx.bt"/>
+        <allow send_destination="org.projectx.bt" send_interface="org.projectx.bt"/>
         <allow send_destination="org.projectx.bt_event"/>
         <allow send_destination="org.projectx.bluetooth.share"/>
         <allow send_destination="org.tizen.csd.Call.Instance"/>