Sharing dbus between two different user

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Jun 29 04:17:48 PDT 2011


On Wed, 29 Jun 2011 at 11:35:05 +0100, rameshsagar krishnasagar wrote:
>  In the embedded system i have 3 users
> a)root
> b)UserB belongs to the group UserB
> c)UserC  belongs to the group UserC
> In the embedded system it is a autologin, the S modules in the /etc/enit.d
> automatically runs & kicks the embedded application.S01dbus module launches
> the dbus-dameon ,it is launched by the root,now i need to launch the server
> application as UserB & Client application as UserC .

Use (something equivalent to) the standard "system bus".

If you install a typical GUI Linux system (Debian or Fedora or whatever) and
inspect its startup scripts, you'll notice a dbus-daemon started by the
system init scripts, running as a dedicated user (typically "messagebus"),
using configuration files /etc/dbus-1/system.conf and /etc/dbus-1/system.d/*
and a system-wide socket (typically "/var/run/dbus/system_bus_socket"), and
allowing connections from all users.

For a device with privilege separation (multiple users), you want to run
a bus like that.

Regards,
    S


More information about the dbus mailing list