[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X applications under chroot



On 10/4/05, Ernest jw ter Kuile <ejwtk04@xs4all.nl> wrote:
On Tuesday 04 October 2005 22:51, Dale E. Martin wrote:
> On Tue, Oct 04, 2005 at 04:41:48PM -0300, Eduardo Costa Lisboa wrote:
>
> Make sure you "rbind" mount /tmp and /home into the chroot.

Ah ? why is that needed for /tmp ?

In the default configuration, X clients connect to the local X server via a named pipe in /tmp. That is what DISPLAY=:0 means. You can also use a network connection (DISPLAY=localhost:0), but that is usually disabled for security reasons, and not quite as fast as a pipe.

In the end, most UNIX servers are accessed via named pipes. So if you want to use these servers, you have to find the pipe and make it available to the chroot environment. MySQL for example puts the pipe in /var, which is quite a pain.

Thomas



Reply to: