From owner-freebsd-current@FreeBSD.ORG Tue Jul 24 14:03:24 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA5B016A41B for ; Tue, 24 Jul 2007 14:03:24 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 8E15913C457 for ; Tue, 24 Jul 2007 14:03:24 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from srv.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1IDKyz-000J8q-TB; Tue, 24 Jul 2007 18:03:26 +0400 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IDKzL-0006Gh-6f; Tue, 24 Jul 2007 18:03:47 +0400 To: Pawel Jakub Dawidek References: <97732929@srv.sem.ipt.ru> <20070723133333.GF5456@garage.freebsd.pl> From: Boris Samorodov Date: Tue, 24 Jul 2007 18:03:47 +0400 In-Reply-To: <20070723133333.GF5456@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Mon\, 23 Jul 2007 15\:33\:33 +0200") Message-ID: <78011660@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@FreeBSD.org Subject: Re: mount_nullfs inside a jail X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 14:03:24 -0000 On Mon, 23 Jul 2007 15:33:33 +0200 Pawel Jakub Dawidek wrote: > On Sun, Jul 22, 2007 at 04:18:06AM +0400, Boris Samorodov wrote: > > Is it possible to use mount_nullfs inside a jail? > > > > With amd64-current: > > ----- > > # sysctl security.jail > > security.jail.jailed: 1 > > security.jail.mount_allowed: 1 > > security.jail.chflags_allowed: 1 > > security.jail.allow_raw_sockets: 0 > > security.jail.enforce_statfs: 2 > > security.jail.sysvipc_allowed: 1 > > security.jail.socket_unixiproute_only: 1 > > security.jail.set_hostname_allowed: 1 > > # mount_nullfs /usr/ports /mnt > > mount_nullfs: Operation not permitted > > ----- > It is not possible. From jail(8): > security.jail.mount_allowed > This MIB entry determines if a privileged user inside a jail will be > able to mount and unmount file system types marked as jail-friendly. > The lsvfs(1) command can be used to find file system types available > for mount from within a jail. This functionality is disabled by > default, but can be enabled by setting this MIB entry to 1. > # lsvfs > Filesystem Refs Flags > -------------------------------- ----- --------------- > zfs 0 jail > nullfs 0 loopback Thanks, Pavel. Somehow I failed to do RTFM. > As you can see, nullfs doesn't have 'jail' flag. The only jail-friendly > file system currently is ZFS. Nullfs is a good candidate for a > jail-friendly file system, but is not marked as such yet. Does somebody know if only a flag is missing or not? WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve