public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] DBus and network namespaces
@ 2013-09-01  5:50 Pavel Volkov
  2013-09-16  7:59 ` Neil Bothwick
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Volkov @ 2013-09-01  5:50 UTC (permalink / raw
  To: gentoo-user

I launch some apps from inside a network namespace in order to force them to 
communicate through my VPN interface only.

But they fail to use DBus then. Some examples of what goes wrong:
1. Chromium cannot launch system proxy settings dialog.
2. Most apps from KDE SC crash right away.
3. No app can use ibus input methods.

I'm not very familiar with DBus, is there a way to heal this setup?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] DBus and network namespaces
  2013-09-01  5:50 [gentoo-user] DBus and network namespaces Pavel Volkov
@ 2013-09-16  7:59 ` Neil Bothwick
  2013-10-27 18:05   ` Pavel Volkov
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Bothwick @ 2013-09-16  7:59 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

On Sun, 01 Sep 2013 09:50:10 +0400, Pavel Volkov wrote:

> I launch some apps from inside a network namespace in order to force
> them to communicate through my VPN interface only.
> 
> But they fail to use DBus then. Some examples of what goes wrong:
> 1. Chromium cannot launch system proxy settings dialog.
> 2. Most apps from KDE SC crash right away.
> 3. No app can use ibus input methods.

Have you tried exporting DBUS_SESION_ADDRESS within the namespace?


-- 
Neil Bothwick

Znqr lbh ybbx!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] DBus and network namespaces
  2013-09-16  7:59 ` Neil Bothwick
@ 2013-10-27 18:05   ` Pavel Volkov
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Volkov @ 2013-10-27 18:05 UTC (permalink / raw
  To: gentoo-user

On Monday 16 September 2013 08:59:58 Neil Bothwick wrote:
> On Sun, 01 Sep 2013 09:50:10 +0400, Pavel Volkov wrote:
> > I launch some apps from inside a network namespace in order to force
> > them to communicate through my VPN interface only.
> > 
> > But they fail to use DBus then. Some examples of what goes wrong:
> > 1. Chromium cannot launch system proxy settings dialog.
> > 2. Most apps from KDE SC crash right away.
> > 3. No app can use ibus input methods.
> 
> Have you tried exporting DBUS_SESION_ADDRESS within the namespace?

I tried it now.
The name is DBUS_SESSION_BUS_ADDRESS.
Still no luck:

$ ktorrent 
unnamed app(19646): KUniqueApplication: Cannot find the D-Bus session server:  
"Failed to connect to socket /tmp/dbus-CM8HloGVTk: Connection refused" 

unnamed app(19645): KUniqueApplication: Pipe closed unexpectedly.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-27 18:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-01  5:50 [gentoo-user] DBus and network namespaces Pavel Volkov
2013-09-16  7:59 ` Neil Bothwick
2013-10-27 18:05   ` Pavel Volkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox