[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    problem with registering interface in system bus
From:       Tarnakin Sergey <tarnakin.sergey () gmail ! com>
Date:       2011-03-29 15:26:31
Message-ID: AANLkTik_tKFkv5TWRs1jLK0DtCvMHTZG9-9Y6mEgxOTn () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,
I have problem with registering interface in system bus.
When I register interface in this way:

<code>
conn = DBusConnection.getConnection(
DBusConnection.SESSION);
conn.requestBusName(AuthenticationService.AUTHENTICATION_SERVICE_BUS_NAME);
conn.exportObject(AuthenticationService.AUTHENTICATION_SERVICE_BUS_PATH,
authenticationService);
</code>
 all work perfectly fine, but when I'm trying to connect to system bus:
<code>
        conn = DBusConnection.getConnection(DBusConnection.SYSTEM);
</code>
 I get the error:
org.freedesktop.dbus.exceptions.DBusException: Connection ":1.107" is not
allowed to own the service
"com.airupt.desktop.authdaemon.dbusservices.AuthenticationService" due to
security policies in the configuration file
    at org.freedesktop.dbus.DBusConnection.requestBusName(Unknown Source)
~[libdbus-java-2.7.jar:na]

I tried to modify /etc/dbus-1/system.conf file and create rule for current
interface, but without success. Problem is that i don't know
what exactly I need to change to make in work.

[Attachment #5 (text/html)]

Hi,<br>I have problem with registering interface in system bus.<br>When I
 register interface in this way:<br><br>&lt;code&gt;<br>conn = 
DBusConnection.getConnection(<div id=":bo">DBusConnection.SESSION);    
                            \
conn.requestBusName(AuthenticationService.AUTHENTICATION_SERVICE_BUS_NAME);<br> \
conn.exportObject(AuthenticationService.AUTHENTICATION_SERVICE_BUS_PATH,  \
authenticationService);<br>&lt;/code&gt;<br> all work perfectly fine,  but when \
I&#39;m trying to connect to system bus:<br>&lt;code&gt;<br>         conn = \
DBusConnection.getConnection(DBusConnection.SYSTEM);         <br>
&lt;/code&gt;<br> I get the error:<br>org.freedesktop.dbus.exceptions.DBusException:
 Connection &quot;:1.107&quot; is not allowed to own the service 
&quot;com.airupt.desktop.authdaemon.dbusservices.AuthenticationService&quot;
 due to security policies in the configuration file<br>
    at org.freedesktop.dbus.DBusConnection.requestBusName(Unknown
 Source) ~[libdbus-java-2.7.jar:na]<br><br>I tried to modify 
/etc/dbus-1/system.conf file and create rule for current interface, but 
without success. Problem is that i don&#39;t know <br>
what <span lang="en"><span title="Click 
for alternate translations">exactly I need to change to make in \
work.</span></span></div>



_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic