I need to restrict the client of a D-Bus service to only the user logged into the system locally, via ConsoleKit or systemd. How must I configure or write the D-Bus service to do so?

  • You mean block it from remote login (eg. ssh, telnet) user?
    – John Siu
    Dec 26, 2012 at 20:09
  • No. I mean block it from other arbitrary processes that decide to connect to it. Dec 26, 2012 at 20:12
  • D-Bus by default (debian/ubuntu) use unix socket, so there is no ip connection. On the other hand, dbus can be configured to only allow specific local users, is that what you looking for?
    – John Siu
    Dec 26, 2012 at 20:15
  • I want to allow only a specific user, namely the one that is logged in at the console. Dec 26, 2012 at 20:24
  • So you want to limit dbus connection NOT by name, NOT by group, but by the following 2 conditions: (1) user is currently login (2) user is login locally.
    – John Siu
    Dec 27, 2012 at 3:55


You must log in to answer this question.

Browse other questions tagged .