Date: Thu, 14 Feb 2013 15:56:00 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Jamie Gritton <jamie@FreeBSD.org> Cc: jail@FreeBSD.org, fs@FreeBSD.org Subject: Re: Marking some FS as jailable Message-ID: <20130214145600.GI44004@ithaqua.etoilebsd.net> In-Reply-To: <511CF77A.2080005@FreeBSD.org> References: <20130212194047.GE12760@ithaqua.etoilebsd.net> <511B1F55.3080500@FreeBSD.org> <20130214132715.GG44004@ithaqua.etoilebsd.net> <511CF77A.2080005@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--svExV93C05KqedWb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 n= eed: > >>> 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.proc= fs > >> flag? > > > > Here is a patch that uses allow.mount.procfs for linsysfs and linprocfs. > > > > 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 i= t? > > > > I'll commit in 2 parts: first lin*fs, second tmpfs related things > > > > http://people.freebsd.org/~bapt/jail-fs.diff >=20 > 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_jai= l.c >=20 > - Jamie Thank you the patch has been updated with your fixes. regards Bapt --svExV93C05KqedWb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEc+wAACgkQ8kTtMUmk6EyHigCff8gnZ9sdNZA9E0h5Cv1pJG6P 5FIAn2vpcpfWQKhQppv4HF9CjuTyJ6S8 =KvSM -----END PGP SIGNATURE----- --svExV93C05KqedWb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130214145600.GI44004>