Date: Thu, 15 Feb 2007 17:31:35 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Josef Karthauser <joe@freebsd.org> Cc: hackers@freebsd.org, Jeremie Le Hen <jeremie@le-hen.org>, fs@freebsd.org Subject: Re: nullfs and named pipes. Message-ID: <20070215153135.GI39168@deviant.kiev.zoral.com.ua> In-Reply-To: <20070215152259.GA2950@genius.tao.org.uk> References: <20070204023711.GA3393@genius.tao.org.uk> <20070215135750.GR64768@obiwan.tataz.chchile.org> <20070215152259.GA2950@genius.tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--o7gdRJTuwFmWapyH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 15, 2007 at 03:22:59PM +0000, Josef Karthauser wrote: > On Thu, Feb 15, 2007 at 02:57:50PM +0100, Jeremie Le Hen wrote: > >=20 > > Note that all processes within a jail can only intefere with processes > > from another jail or host as if they were on different machines. This > > means they can communicate through PF_INET for instance but not > > PF_LOCAL. > >=20 >=20 > You might think so! However that's not what's going on here. >=20 > The named pipe/nullfs issue is nothing to do with jails. It's just > that nullfs is broken with respect to named pipes as I've previously > reported. However with this patch: >=20 > cvs diff: Diffing . > Index: null_subr.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/sys/fs/nullfs/null_subr.c,v > retrieving revision 1.48.2.1 > diff -u -r1.48.2.1 null_subr.c > --- null_subr.c 13 Mar 2006 03:05:17 -0000 1.48.2.1 > +++ null_subr.c 14 Feb 2007 00:02:28 -0000 > @@ -235,6 +235,8 @@ > xp->null_vnode =3D vp; > xp->null_lowervp =3D lowervp; > vp->v_type =3D lowervp->v_type; > + if (vp->v_type =3D=3D VSOCK || vp->v_type =3D=3D VFIFO) > + vp->v_un =3D lowervp->v_un; I'm wondering is some reference counting needed there ? > vp->v_data =3D xp; > vp->v_vnlock =3D lowervp->v_vnlock; > if (vp->v_vnlock =3D=3D NULL) >=20 --o7gdRJTuwFmWapyH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF1HzXC3+MBN1Mb4gRAjWqAKDbD0zmXgl9XH84olKNpGzCa4jUvQCg1wTj PS5YUBnN+3ferD6fSsPKfAQ= =5j5c -----END PGP SIGNATURE----- --o7gdRJTuwFmWapyH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070215153135.GI39168>