Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2007 17:12:35 +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:  <20070725151235.GK12473@garage.freebsd.pl>
In-Reply-To: <76240598@srv.sem.ipt.ru>
References:  <97732929@srv.sem.ipt.ru> <20070723133333.GF5456@garage.freebsd.pl> <78011660@srv.sem.ipt.ru> <20070724144549.GA12473@garage.freebsd.pl> <08401633@srv.sem.ipt.ru> <20070725145031.GJ12473@garage.freebsd.pl> <76240598@srv.sem.ipt.ru>

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

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

On Wed, Jul 25, 2007 at 07:03:37PM +0400, Boris Samorodov wrote:
> > > This didn't help:
> > > -----
> > > btest# 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
> > > btest# lsvfs
> > > Filesystem                        Refs Flags
> > > -------------------------------- ----- ---------------
> > > ufs                                  6=20
> > > nfs                                  0 network
> > > procfs                               0 synthetic
> > > devfs                                3 synthetic
> > > ntfs                                 0=20
> > > msdosfs                              0=20
> > > nfs4                                 0 network
> > > nullfs                               1 loopback, jail
> > > cd9660                               0 read-only
> > > btest# df
> > > Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
> > > /dev/da0s1d 945804208 22136782 848003090     3%    /
> > > btest# mount /usr/ports/distfiles /mnt
> > > mount: /usr/ports/distfiles : Operation not permitted
>=20
> > mount_nullfs?
>=20
> Ops!!! (i need some coffee)  My bad... Mounting works good but:
> -----
> btest# umount /mnt
> umount: unmount of [restricted] failed: Invalid argument
> -----

I overlooked. You need to set security.jail.enforce_statfs to 0. See if
that helps.

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

--6J7GEvtanOfV9oXA
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFGp2hjForvXbEpPzQRAolwAJ98UiDihtfvDNH19+b8x7DWmBQ90gCgkbXM
FHVlLoOqFaNIgpHq42DfGUo=
=vN8F
-----END PGP SIGNATURE-----

--6J7GEvtanOfV9oXA--



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