From owner-freebsd-fs@FreeBSD.ORG Thu Aug 22 23:20:23 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 456927A5; Thu, 22 Aug 2013 23:20:23 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [IPv6:2607:f8b0:400c:c02::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E788D2D9A; Thu, 22 Aug 2013 23:20:22 +0000 (UTC) Received: by mail-vb0-f44.google.com with SMTP id e13so1805224vbg.31 for ; Thu, 22 Aug 2013 16:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wpE/uUL+T5tx5ffDleP0sk6Om9rTwjycVh4haGj3w2s=; b=1ANaz4VKELe9lxplK+q4Is6SOA7+6Kpf8hyvz3fieJqKU5uFUs+Lv2jiOvyJHsiF1c 3pjTSKe2ENOVwYIzby19wkwimnqa1o6sTiChQvT8lgvj3xwbXJ2M0plJ7i6AsTFWX1MJ fK4LaQ4h/dssHMtraWBSmh1zNeVwhZupWQP3fd62HdY0/LVm0WjRnoBB9BucR6M1YoG0 psF/thEPKNhUQLcyGyCWOpziBZPAtvC5c8erTwjVvcQu4zZVgS01OMsIAStAfIvZ9cOG hn4mi4O0nYYfQ9esxknDRtCecAnaC6WuZoThsvgCuHgsBQrqfRsiJlCLS1oifAJIpkwA bW2Q== MIME-Version: 1.0 X-Received: by 10.58.201.227 with SMTP id kd3mr13741179vec.14.1377213622022; Thu, 22 Aug 2013 16:20:22 -0700 (PDT) Received: by 10.220.96.78 with HTTP; Thu, 22 Aug 2013 16:20:21 -0700 (PDT) In-Reply-To: <641D3DB0C34A482EA7F5902243F3F6D0@white> References: <52166351.4030106@delphij.net> <641D3DB0C34A482EA7F5902243F3F6D0@white> Date: Thu, 22 Aug 2013 19:20:21 -0400 Message-ID: Subject: Re: Allowing tmpfs to be mounted in jail? From: "Sam Fourman Jr." To: Dewayne Geraghty Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD FS , freebsd-security@freebsd.org, Xin LI 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, 22 Aug 2013 23:20:23 -0000 Xin Li, > > I can envision the use of tmpfs without providing access to mounting other > devices within a jail context. > > It would be better if this feature had its own sysctl to control the > jail's state, particularly as a DOS could "inadvertently" be > introduced, per Kib's earlier point. Other devices-types have additional > mitigation strategies, such as exclusion via dev.rules > which tmpfs doesn't have. > > Regards, Dewayne. > > Xin, This is a Great feature and it has several use cases, what about the possibility of a sysctl that adds a max amount that a jail could set a tmpfs... this would be per jail, now in theory you could over commit resources, but that would be a administrators decision, and not one jail could consume all resources. -- Sam Fourman Jr.