From owner-freebsd-jail@FreeBSD.ORG Mon May 5 12:22:52 2014 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5FFB7E5 for ; Mon, 5 May 2014 12:22:52 +0000 (UTC) Received: from relay.mailchannels.net (si-002-i152.relay.mailchannels.net [108.178.49.164]) by mx1.freebsd.org (Postfix) with ESMTP id 453CD178D for ; Mon, 5 May 2014 12:22:51 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (ip-10-237-3-9.us-west-2.compute.internal [10.237.3.9]) by relay.mailchannels.net (Postfix) with ESMTPA id 35EA16055D; Mon, 5 May 2014 12:22:44 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (mail-24.name-services.com [10.235.16.137]) (using TLSv1 with cipher AES128-SHA) by 0.0.0.0:2500 (trex/5.1.2); Mon, 05 May 2014 12:22:44 GMT X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from%7C107.201.34.133 X-MailChannels-Auth-Id: demandmedia Received: from [10.0.10.1] (107-201-34-133.lightspeed.bcvloh.sbcglobal.net [107.201.34.133]) by mail-24.name-services.com with SMTP; Mon, 5 May 2014 05:22:36 -0700 Message-ID: <5367828D.8080506@a1poweruser.com> Date: Mon, 05 May 2014 08:22:37 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Erich Dollansky Subject: Re: Can Firefox break out of a jail References: <20140505195852.140ddb1b@X220.alogt.com> In-Reply-To: <20140505195852.140ddb1b@X220.alogt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2014 12:22:53 -0000 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.