From owner-freebsd-fs@FreeBSD.ORG Thu Feb 14 13:27:20 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 9460DE62; Thu, 14 Feb 2013 13:27:20 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx1.freebsd.org (Postfix) with ESMTP id EEE84217; Thu, 14 Feb 2013 13:27:19 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hm6so2721479wib.14 for ; Thu, 14 Feb 2013 05:27:19 -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=lh8GNdyAY5hLHvwBlq9gycue7GHnQDw7Un3DepTVn6U=; b=EJrwQidvC2Qf7hOovkJC1/lRqaH7009LrgyiFoHBQA0GycKKfQrsvXdrzJ/qgD+3sq Y7qAqOtYuEuMul0hzRA/8FcEltjrSe5hSA9qVTw/ww01W14/IFOHrpEBkWE/ptfPb8Ok XJVIHo33LIhJW8eaJMgoMpiZKpRJYSPW/kSwddo0v+CY9KzzwTSVZSHnQlJ+fcH29tG8 MoLJKVVgxZb6Y55c5mTXuPVNiKBQkYaw8eKFZ6M4oJyfEFVQDFMNdUMNZ8C1N/hoaEDK QWNO/A1SiS71idYFE82ZApjkjA+fl+1sDhIAR7mvfarFCnqgJW1HRiROLmlFHIzoStqr /lkA== X-Received: by 10.194.156.196 with SMTP id wg4mr45459827wjb.22.1360848438812; Thu, 14 Feb 2013 05:27:18 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id ex1sm52215851wib.7.2013.02.14.05.27.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Feb 2013 05:27:17 -0800 (PST) Sender: Baptiste Daroussin Date: Thu, 14 Feb 2013 14:27:15 +0100 From: Baptiste Daroussin To: Jamie Gritton Subject: Re: Marking some FS as jailable Message-ID: <20130214132715.GG44004@ithaqua.etoilebsd.net> References: <20130212194047.GE12760@ithaqua.etoilebsd.net> <511B1F55.3080500@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/Zw+/jwnNHcBRYYu" Content-Disposition: inline In-Reply-To: <511B1F55.3080500@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: 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 13:27:20 -0000 --/Zw+/jwnNHcBRYYu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 12, 2013 at 10:06:29PM -0700, Jamie Gritton wrote: > On 02/12/13 12:40, Baptiste Daroussin wrote: > > Hi, > > > > I would like to mark some filesystem as jailable, here is the one I nee= d: > > linprocfs, tmpfs and fdescfs, I was planning to do it with adding a > > allow.mount.${fs} for each one. > > > > Anyone has an objection? > > > > regards, > > Bapt >=20 > Would it make sense for linprocfs to use the existing allow.mount.procfs > 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 it? I'll commit in 2 parts: first lin*fs, second tmpfs related things http://people.freebsd.org/~bapt/jail-fs.diff regards, Bapt --/Zw+/jwnNHcBRYYu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEc5jIACgkQ8kTtMUmk6EyC2ACfWk8tYvAnJyD4XG9+4lHrCvRr LMoAnR4PQwxYOAknOa8tL368YlftWXaf =RkRX -----END PGP SIGNATURE----- --/Zw+/jwnNHcBRYYu--