Re: How to let user defined in a container to access dbus systembus

Srinadh Penugonda <srinadh0-/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
Yes, I did add the mount point for .mk file of the container. My bad, missed mentioning it my previous email.

It wasnt there before but even after adding the mount point, it didnt make any difference in the error that see. 

root@sonic:/var/run# ls -Fdbus/  frr/  frrcfgd_client_conn_completed  lock/  redis/  redis-chassis/  supervisord.pid  supervisor.sock=  utmp
root@sonic:/var/run/dbus# ls -altotal 4drwxr-xr-x 2 root root   80 Dec  9 19:02 .drwxr-xr-x 1 root root 4096 Dec  9 19:03 ..srwxrw-rw- 1 root root    0 Dec  9 19:02 histmem.socketsrw-rw-rw- 1 root root    0 Dec  9 19:02 system_bus_socketroot@sonic:/var/run/dbus# 


~~  Thanks, Srinadh



    On Tuesday, December 14, 2021, 04:08:48 AM PST, Thiago Macieira <[email protected]> wrote:  
 
 On Sunday, 12 December 2021 00:32:13 -03 Srinadh Penugonda wrote:
> When these processes trying to use dbus, they are not able to get the dbus
> conn 40        static DBus::Connection conn =
> DBus::Connection::SystemBus();

DId you bind-mount the system bus socket into the identical path inside the 
container?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Software Architect - Intel DPG Cloud Engineering
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.