From owner-freebsd-fs@FreeBSD.ORG Thu Feb 14 15:09:11 2013 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A263CBDA; Thu, 14 Feb 2013 15:09:11 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx1.freebsd.org (Postfix) with ESMTP id DF8B7A09; Thu, 14 Feb 2013 15:09:10 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hi8so7172391wib.13 for ; Thu, 14 Feb 2013 07:09:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=EjYSivbjrOmN3F8+oUHPeRwNXWDtz77hoMamqLXRNhU=; b=nmXfpI4+Pmu7+MSdGWFA2di1A0P3K9crcn0U3euBoX9zj3Ltif0bAKTNI6CiXXzrtS U143lLvceeBy0j3utaFq/5L+98U+UdB6sSsWPQrFK6Rid5ho98SBn7lH0ryfV2vfeL8d J6BR+TWgwaMMi8bsZ2hWWCm+To2L+ou0K8Wtz/5Ftt2A7MFHg+UPHY+Q8Ft1FdpoJg7g pvfvRk4lvMUXF8gAC4NsA042ai7FBym08ZCKE9DVbMrlnNHwnoBFbh2mVDLllcuJUaaC TAfI5BG3XLNj+sBiZAx3ymUGv1m425XY0CkQ5IvBhglWj6g0tj9EgWxIR0qomopGw47I 6HyQ== X-Received: by 10.180.8.4 with SMTP id n4mr17681326wia.13.1360854541067; Thu, 14 Feb 2013 07:09:01 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id fg6sm33086802wib.10.2013.02.14.07.08.59 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Feb 2013 07:08:59 -0800 (PST) Sender: Baptiste Daroussin Date: Thu, 14 Feb 2013 16:08:57 +0100 From: Baptiste Daroussin To: Jamie Gritton Subject: Re: Marking some FS as jailable Message-ID: <20130214150857.GK44004@ithaqua.etoilebsd.net> References: <20130212194047.GE12760@ithaqua.etoilebsd.net> <511B1F55.3080500@FreeBSD.org> <20130214132715.GG44004@ithaqua.etoilebsd.net> <511CF77A.2080005@FreeBSD.org> <20130214145600.GI44004@ithaqua.etoilebsd.net> <511CFBAC.3000803@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2feizKym29CxAecD" Content-Disposition: inline In-Reply-To: <511CFBAC.3000803@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jail@FreeBSD.org, fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 15:09:11 -0000 --2feizKym29CxAecD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 14, 2013 at 07:58:52AM -0700, Jamie Gritton wrote: > On 02/14/13 07:56, Baptiste Daroussin wrote: > > On Thu, Feb 14, 2013 at 07:40:58AM -0700, Jamie Gritton wrote: > >> On 02/14/13 06:27, Baptiste Daroussin wrote: > >>> On Tue, Feb 12, 2013 at 10:06:29PM -0700, Jamie Gritton wrote: > >>>> On 02/12/13 12:40, Baptiste Daroussin wrote: > >>>>> > >>>>> I would like to mark some filesystem as jailable, here is the one I= need: > >>>>> linprocfs, tmpfs and fdescfs, I was planning to do it with adding a > >>>>> allow.mount.${fs} for each one. > >>>>> > >>>>> Anyone has an objection? > >>>> > >>>> Would it make sense for linprocfs to use the existing allow.mount.pr= ocfs > >>>> flag? > >>> > >>> Here is a patch that uses allow.mount.procfs for linsysfs and linproc= fs. > >>> > >>> It also addd a new allow.mount.tmpfs to allow tmpfs. > >>> > >>> It seems to work here, can anyone confirm this is the right way to do= it? > >>> > >>> I'll commit in 2 parts: first lin*fs, second tmpfs related things > >>> > >>> http://people.freebsd.org/~bapt/jail-fs.diff > >> > >> There are some problems. The usage on the mount side of things looks > >> correct, but it needs more on the jail side. I'm including a patch just > >> of that part, with a correction in jail.h and further changes in kern_= jail.c > > > > Thank you the patch has been updated with your fixes. >=20 > One more bit (literally): PR_ALLOW_ALL in sys/jail.h needs updating. >=20 > - Jamie Fixed thanks Bapt --2feizKym29CxAecD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEc/gkACgkQ8kTtMUmk6Ez32ACgn5dhl2qu4auCzE22o/4ojZ/K zlAAoLAlABbev6X7zOadrZCO+DJiusDU =PN4l -----END PGP SIGNATURE----- --2feizKym29CxAecD--