Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2014 20:35:25 +0800
From:      Erich Dollansky <erichsfreebsdlist@alogt.com>
To:        Fbsd8 <fbsd8@a1poweruser.com>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Can Firefox break out of a jail
Message-ID:  <20140505203525.6f2ddfb3@X220.alogt.com>
In-Reply-To: <5367828D.8080506@a1poweruser.com>
References:  <20140505195852.140ddb1b@X220.alogt.com> <5367828D.8080506@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Mon, 05 May 2014 08:22:37 -0400
Fbsd8 <fbsd8@a1poweruser.com> wrote:

> Erich Dollansky wrote:
> > Hi,
> > 
> > I do some experimenting with jails at the moment on a FreeBSD 10.0
> > machine. The jails are all setup manually according to the handbook
> > and man jail. Each jail gets a name and an IP address. Individual
> > ports are then installed via the ports tree.
> > 
> > X is running on the host system. Telnet is used to connect to the
> > jails.
> > 
> > When I install now firefox in a jail and also in the host system, I
> > get the following behaviour.
> > 
> > Scene A
> > 
> > Firefox runs already on the host system. I start then firefox inside
> > the jail firefox. It all seems fine as long as I do not use the
> > history or want to save the visited page. The jailed firefox sees
> > then the history of the firefox running on the host.
> > 
> > Scene B
> > 
> > Firefox is first started inside the jail firefox. When then the host
> > system also starts a firefox, this firefox sees now the history and
> > the filesystem of the jailed firefox.
> > 
> > Is it X that allows the jailed firefox to communicate directly with
> > firefox running directly on the host?
> > 
> > Is there then a way to secure the system?
> > 
> > I have tried then programs like gedit or kate and saw only the
> > behaviour I expected. Both programs either saw only resources from
> > inside the jail or from outside but never resources from the other
> > side of the fence.
> > 
> 
> firefox has to be installed where you have xorg and your desktop 
> installed. Installing firefox in a jail be it self does nothing.
> What you think you are seeing is wrong. ssh into jail having firefox
> is not running firefox. ssh into the host where xorg and desktop and 
> firefox is the only to have firefox work to the best of my knowledge.
> 
as you can see, I have realised my mistake with the mailing list.

Ok, why is this so? How can firefox started inside a jail see the
firefox from outside.

As I am travelling most of my time, I only have my notebook. If I
remember right, I used to have in the office a small FreeBSD server
which was running as an application server. When I started firefox
there via telnet on the other machine, it worked as expected. The
remote firefox saw only the 'remote' machine and the local firefox
saw only the local machine. Shouldn't it be the same with a jailed
firefox?

Erich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140505203525.6f2ddfb3>