GDBusNodeInfo * _bt_get_gdbus_node(const gchar *xml_data)
{
if (bus_id == 0) {
- char *name = g_strdup_printf("org.bt.frwk%d", getpid());
+ char *name = g_strdup_printf("org.bt.frwk.p%d", getpid());
bus_id = g_bus_own_name(G_BUS_TYPE_SYSTEM,
name,
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root">
- <allow send_destination="org.projectx.bt" send_interface="org.bluez.Agent1"/>
- <allow send_interface="org.bluez.Profile1"/>
+ <!-- service name(org.bt.frwk.p<pid>) is changeable by pid -->
+ <allow own_prefix="org.bt.frwk"/>
+ <allow send_interface="org.bluez.Profile1" send_member="NewConnection"/>
+ <allow send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
</policy>
<policy group="network_fw">
- <allow send_destination="org.projectx.bt" send_interface="org.bluez.Agent1"/>
- <allow send_interface="org.bluez.Profile1"/>
+ <!-- service name(org.bt.frwk.p<pid>) is changeable by pid -->
+ <allow own_prefix="org.bt.frwk"/>
+ <allow send_interface="org.bluez.Profile1" send_member="NewConnection"/>
+ <allow send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
</policy>
<policy context="default">
- <check send_destination="org.projectx.bt" send_interface="org.bluez.Agent1" privilege="http://tizen.org/privilege/bluetooth.admin"/>
+ <deny own_prefix="org.bt.frwk"/>
+ <deny send_interface="org.bluez.Profile1" send_member="NewConnection"/>
+ <deny send_interface="org.bluez.Profile1" send_member="RequestDisconnection"/>
</policy>
</busconfig>
static GDBusNodeInfo *_bt_hal_get_gdbus_node(const gchar *xml_data)
{
if (bus_id == 0) {
- char *name = g_strdup_printf("org.bt.frwk%d", getpid());
+ char *name = g_strdup_printf("org.bt.frwk.p%d", getpid());
bus_id = g_bus_own_name(G_BUS_TYPE_SYSTEM,
name,
<busconfig>
<policy user="root">
<allow own="org.projectx.bt"/>
+ <allow send_destination="org.projectx.bt"/>
+ <allow own="org.bluez.obex"/>
+ <allow send_destination="org.bluez.obex"/>
</policy>
- <policy user="network_fw">
+ <policy group="network_fw">
<allow own="org.projectx.bt"/>
- <allow send_destination="org.bluez.obex"/>
- <allow send_destination="org.bluez.obex" send_interface="org.freedesktop.DBus.Properties"/>
- <allow send_destination="org.projectx.bt" send_interface="org.bluez.obex.Agent1"/>
+ <allow send_destination="org.projectx.bt"/>
+ <allow own="org.bluez.obex"/>
+ <allow send_destination="org.bluez.obex"/>
</policy>
<policy context="default">
<deny own="org.projectx.bt"/>
+ <deny send_destination="org.projectx.bt"/>
+ <deny own="org.bluez.obex"/>
+ <deny send_destination="org.bluez.obex"/>
+
<allow send_destination="org.projectx.bt" send_interface="org.projectx.bt"/>
+ <allow send_destination="org.projectx.bt" send_interface="org.freedesktop.DBus.Properties" send_member="GetAll"/>
+ <check send_destination="org.projectx.bt" send_interface="org.bluez.Agent1" privilege="http://tizen.org/privilege/bluetooth.admin"/>
+ <allow send_destination="org.projectx.bt" send_interface="org.bluez.obex.reply"/>
<allow send_destination="org.projectx.bt_event"/>
<allow send_destination="org.projectx.bluetooth.share"/>
<allow send_destination="org.tizen.csd.Call.Instance"/>
- <allow send_destination="org.projectx.bt" send_interface="org.bluez.obex.reply"/>
</policy>
</busconfig>