Re: Chroot and X-Window applications
From: Nigel Wade (nmw_at_ion.le.ac.uk)
Date: 05/20/03
- Next message: Calvin Lane: "ANY EXPERIENCE WITH WebRamp 700s?"
- Previous message: J Shoemaker: "Re: Restricting user profiles"
- In reply to: Erwan Becquet: "Chroot and X-Window applications"
- Next in thread: Steve Watt: "Re: Chroot and X-Window applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 20 May 2003 16:58:59 +0100
Erwan Becquet wrote:
> Hi everybody,
>
> 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.
>
> 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 ?
>
> Thanks in advance.
If the X server is relying on xauth authorization then it needs access to
the .Xauthority file. Has this file been copied to the chroot jail? As a
simple test temporarily turn off X security with the command
'xhost +localhost' so any application on the localhost should be able to
connect. Don't forget to remove this loophole after the test with
'xhost -localhost'.
If your flavour of UNIX has a method of tracing system calls
(strace,truss,par etc), run the X application with tracing on and compare
the output from normal and chroot'd to see what files it's trying to access
which don't exist in the chroot jail.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
- Next message: Calvin Lane: "ANY EXPERIENCE WITH WebRamp 700s?"
- Previous message: J Shoemaker: "Re: Restricting user profiles"
- In reply to: Erwan Becquet: "Chroot and X-Window applications"
- Next in thread: Steve Watt: "Re: Chroot and X-Window applications"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|