From owner-freebsd-current@FreeBSD.ORG Mon Jul 23 14:02:56 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 79C3816A418 for ; Mon, 23 Jul 2007 14:02:56 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 11BA113C45D for ; Mon, 23 Jul 2007 14:02:55 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 078C648811; Mon, 23 Jul 2007 15:34:09 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id B405245B26; Mon, 23 Jul 2007 15:34:02 +0200 (CEST) Date: Mon, 23 Jul 2007 15:33:33 +0200 From: Pawel Jakub Dawidek To: Boris Samorodov Message-ID: <20070723133333.GF5456@garage.freebsd.pl> References: <97732929@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/Zw+/jwnNHcBRYYu" Content-Disposition: inline In-Reply-To: <97732929@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 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: Mon, 23 Jul 2007 14:02:56 -0000 --/Zw+/jwnNHcBRYYu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 22, 2007 at 04:18:06AM +0400, Boris Samorodov wrote: > Hi! >=20 >=20 > Is it possible to use mount_nullfs inside a jail? >=20 > 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-friend= ly. The lsvfs(1) command can be used to find file system types availa= ble 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 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. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --/Zw+/jwnNHcBRYYu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFGpK4tForvXbEpPzQRAsV8AKCKuubOZb4vfPsrE7p4FJLvMUwjowCgzr3l DpQTCqLmxHi90ft3rzemxLM= =DHp2 -----END PGP SIGNATURE----- --/Zw+/jwnNHcBRYYu--