How to interact with existing dbus session through sudo?

Thiago Macieira thiago at kde.org
Tue Mar 18 13:44:04 PDT 2014


Em ter 18 mar 2014, às 14:22:45, Louise Baldwin escreveu:
>  Why not?
> 
> I need to be able to run tasks consecutively for two different users (root
> and Louise). How do you suggest this be accomplished if it's "impossible"
> to use sudo with dbus?

It's not permitted because the bus daemon disconnects if it detects a 
connection from a different user. It's been like that for 8 years.

Maybe the solution to your problem is to use something other than D-Bus. 
Moreover, if one of the processes is running as root, you need to do a 
thorough verification of the incoming data to avoid exploits leading to 
privilege escalation.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the dbus mailing list