Re: Chroot and X-Window applications
From: Julien Salgado (Julien.Salgado_at_f_r_e_e_f_r.ignore.invalid)
Date: 05/15/03
- Previous message: Erwan Becquet: "Chroot and X-Window applications"
- In reply to: Erwan Becquet: "Chroot and X-Window applications"
- Next in thread: Barry Margolin: "Re: Chroot and X-Window applications"
- Reply: Barry Margolin: "Re: Chroot and X-Window applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 15 May 2003 07:43:18 GMT
Erwan Becquet wrote :
> Hi everybody,
Hi,
> I have a strange problem, I want to start programs
> from a chrooted tree. It works perfectly with non-x
> apps. But with X apps (emacs for example), I have an
> error "Cant Connect to X Server on :0". Same work
> perfecly without chroot.
>
> I think X-Window use some special place of the filesystem
> but I cant find what.
X needs a socket either a unix socket (Sometihng like /tmp/.X11-unix/X0)
or a TCP/IP socket. The connection to :0 is refering to the latter.
> I tried with a chroot on / and it works. But when I tried
> to copy whole tree on a subtree (like /tmp/jail), so I have
> under /tmp/jail : usr, var,etc, tmp, bin, sbin, home etc ...
> and try that, it fails.
>
> Has someone already encounter a similar problem ? Or maybe
> someone has a deep knowledge of X-Window mechanisms and could
> help me ?
Normally it should work, but chrooting an X application is only usefull
if X is completely chrooted (i.e. an X client is not accessing a X
server outside the chroot). So you will have to included a large amount
of library and binary in your chroot.
> Thanks in advance.
-- Julien
- Previous message: Erwan Becquet: "Chroot and X-Window applications"
- In reply to: Erwan Becquet: "Chroot and X-Window applications"
- Next in thread: Barry Margolin: "Re: Chroot and X-Window applications"
- Reply: Barry Margolin: "Re: Chroot and X-Window applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|