3

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 '12 at 20:09
  • No. I mean block it from other arbitrary processes that decide to connect to it. – Ignacio Vazquez-Abrams Dec 26 '12 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 '12 at 20:15
  • I want to allow only a specific user, namely the one that is logged in at the console. – Ignacio Vazquez-Abrams Dec 26 '12 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 '12 at 3:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.