[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
<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>
</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"/>
</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"/>