<div dir="ltr"><div><div><div><div><div><div>Hi All,<br><br></div> Thanks for the response but no luck. Few clarification,<br><br></div>1: I tried to use UID with lower range(1000), but still same issue. From this I don't think it is UID range issue.<br>2: /var/run/dbus/system_bus_socket has complete permission. <br>  srwxrwxrwx 1 root root 0 Feb  9 00:21 /var/run/dbus/system_bus_socket<br></div>3: I tried even with DBUS_BUS_SESSION, DBUS_BUS_SYSTEM, DBUS_BUS_STARTER. <span class="gmail-im">dbus_bus_get</span> fails for all.<br><br></div> I am using <a href="http://www.matthew.ath.cx/projects.git/dbus-example.c">http://www.matthew.ath.cx/projects.git/dbus-example.c</a> code for testing. Has for any one dbus is working when container is started as non privilage mode. I am trying to connect dbus from inside container to outside using dbus,and using busybox template on Ubuntu 14.04. I am attaching config.<br><br></div>Thanks,<br></div>Adithya<br><div><div><div><div> <br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-03 19:21 GMT+05:30 Andrey Repin <span dir="ltr"><<a href="mailto:anrdaemon@yandex.ru" target="_blank">anrdaemon@yandex.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings, Adithya K!<br>
<span class=""><br>
> Hi All,<br>
<br>
> I am usig busybox  template to create container on ubuntu. I am creating<br>
> container as non  privilage. Attached is the config created.<br>
<br>
<br>
>  I am mapping var/run/duns/socket from host to container. Basically I am using host dbus.<br>
<br>
<br>
>  What  I see is when I try to run and dbus program,<br>
> dbus_bus_get(DBUS_BUS_SYSTEM, &err); call fails. Basically I am not  able to get dbus bus connection.<br>
<br>
</span>I suppose you're running containers with subuid?<br>
Then the answer is obvious - your container don't have permissions to access the socket.<br>
<span class=""><br>
>  When I create container using privilage mode, then this issue doesn't exist.<br>
<br>
>  Any solution for this issue.<br>
<br>
</span>Don't use system dbus.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
With best regards,<br>
Andrey Repin<br>
Friday, March 3, 2017 16:50:25<br>
<br>
Sorry for my terrible english...<br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></font></span></blockquote></div><br></div>