Bug 98675 - Not able to get messages or events from other system bus when Daemon for that application is started
Summary: Not able to get messages or events from other system bus when Daemon for that...
Status: RESOLVED NOTOURBUG
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium major
Assignee: D-Bus Maintainers
QA Contact: D-Bus Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-10 16:26 UTC by Raviraj
Modified: 2016-11-10 16:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Raviraj 2016-11-10 16:26:06 UTC

    
Comment 1 Raviraj 2016-11-10 16:36:14 UTC
I'm adding external profile in bluez. I'm using dbus system bus(address=org.hfpapp). following is the some part of the code::


>        conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM,"org.hfphf", &error);

>       bluez = g_dbus_client_new(conn, org.bluez,"/");
>        if (bluez == NULL) {
>                g_dbus_unregister_interface(conn, HFP_EXT_PROFILE_PATH,
                                                BLUEZ_PROFILE_INTERFACE);
>                return -ENOMEM;
>        }
>        g_dbus_client_set_connect_watch(bluez, connect_handler, NULL);
>        g_dbus_client_set_proxy_handlers(bluez, proxy_added, NULL,
                                                property_changed, NULL);

When i start bluetoothd(address==org.bluez), I'm not getting any message or event which is going to trigger connect_handler api. 

conf file(hfphf.conf) for the same is as follows:

<!-- This configuration file specifies the required security policies
     for HFP app daemon to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- ../system.conf have denied everything, so we just punch some holes -->

  <policy user="root">
    <allow own="org.hfphf"/>
    <allow send_destination="org.hfphf"/>
    <allow receive_sender="org.hfphf"/>
    </policy>

  <policy at_console="true">
    <allow send_destination="org.hfphf"/>
  </policy>

  <policy context="default">
    <deny send_destination="org.hfphf"/>
  </policy>

</busconfig>


Please help me to resolve this issue.

Thank You.
Comment 2 Simon McVittie 2016-11-10 16:42:20 UTC
(In reply to Raviraj from comment #1)
> >       bluez = g_dbus_client_new(conn, org.bluez,"/");

This appears to be BlueZ' own D-Bus library, which is a wrapper around libdbus. It is not developed here. Please ask the BlueZ developers for support, and come back here if there is evidence of a bug in libdbus or dbus-daemon.

>     <allow own="org.hfphf"/>

Unrelated to this issue, but I'm fairly sure this is not your domain name:

% whois hfphf.org
NOT FOUND

and neither is hfpapp.org:

% whois hfpapp.org
NOT FOUND


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.