Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2007 16:45:49 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: mount_nullfs inside a jail
Message-ID:  <20070724144549.GA12473@garage.freebsd.pl>
In-Reply-To: <78011660@srv.sem.ipt.ru>
References:  <97732929@srv.sem.ipt.ru> <20070723133333.GF5456@garage.freebsd.pl> <78011660@srv.sem.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 24, 2007 at 06:03:47PM +0400, Boris Samorodov wrote:
> On Mon, 23 Jul 2007 15:33:33 +0200 Pawel Jakub Dawidek wrote:
> > 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
> Does somebody know if only a flag is missing or not?

You may try changing the line in /sys/fs/nullfs/null_vfsops.c from:

VFS_SET(null_vfsops, nullfs, VFCF_LOOPBACK);

to:

VFS_SET(null_vfsops, nullfs, VFCF_LOOPBACK | VFCF_JAIL);

but I don't think anyone did any security analysis of this yet.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--UugvWAfsgieZRqgk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFGphCdForvXbEpPzQRAqw1AJ0Q6YoZ+ZKjfBvMTUSmncoCb2l9wACeL6sa
VI3bbB7KqIrfICYfl3gfO2M=
=+oDv
-----END PGP SIGNATURE-----

--UugvWAfsgieZRqgk--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070724144549.GA12473>