Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-23 Thread René J . V . Bertin
Thiago Macieira wrote: >> My first attempts to get a privileged service to work involved exporting my >> launchd session bus socket to root, via launchctl. That worked; I think >> that's sufficient proof that root at least can connect to a lesser user's >> session bus, on OS X. > > Probably beca

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-22 Thread Thiago Macieira
On sexta-feira, 23 de setembro de 2016 01:06:31 PDT René J. V. Bertin wrote: > Ch'Gans wrote: > >> It's not possible to connect to another user's session bus. > > > > I'm not trying to say that this is what René should do, I'm just > > saying that it is technically possible, for the sake of correc

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-22 Thread René J . V . Bertin
Ch'Gans wrote: >> It's not possible to connect to another user's session bus. > I'm not trying to say that this is what René should do, I'm just > saying that it is technically possible, for the sake of correctness. My first attempts to get a privileged service to work involved exporting my la

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-18 Thread Ch'Gans
On 19 September 2016 at 07:56, Thiago Macieira wrote: > On sexta-feira, 16 de setembro de 2016 14:22:03 PDT René J.V. Bertin wrote: >> Hi, >> >> Is it possible to use Qt-based applications on OS X that run with elevated >> privileges (= as root), in general and > > It's possible, but not recommend

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-18 Thread Thiago Macieira
On sexta-feira, 16 de setembro de 2016 14:22:03 PDT René J.V. Bertin wrote: > Hi, > > Is it possible to use Qt-based applications on OS X that run with elevated > privileges (= as root), in general and It's possible, but not recommended. > if they need to connect to the user's session dbus? It

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-18 Thread Richard Moore
On 18 September 2016 at 18:23, Roland Hughes wrote: > >> > > Hi, > > Is it possible to use Qt-based applications on OS X that run with elevated > privileges (= as root), in general and if they need to connect to the > user's session dbus? > > --- > > Typically you need to look at QApplication doc

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-18 Thread Roland Hughes
>> Hi, Is it possible to use Qt-based applications on OS X that run with elevated privileges (= as root), in general and if they need to connect to the user's session dbus? --- Typically you need to look at QApplication documentation. There is something you have to set in that class BEFORE

[Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-16 Thread René J . V . Bertin
Hi, Is it possible to use Qt-based applications on OS X that run with elevated privileges (= as root), in general and if they need to connect to the user's session dbus? Cf. %> sudo -E /opt/local/bin/qdbus -qt=qt5 --system Dynamic session lookup supported but failed: launchd did not provide a