Date: Fri, 2 Jul 2004 11:57:21 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net> Cc: FreeBSD current users <current@freebsd.org> Subject: Re: jail getfsstat patches. Message-ID: <20040702095721.GY12007@darkness.comp.waw.pl> In-Reply-To: <Pine.BSF.4.53.0407020749280.28103@e0-0.zab2.int.zabbadoz.net> References: <Pine.BSF.4.21.0406251809530.1679-100000@InterJet.elischer.org> <20040627065932.GH12007@darkness.comp.waw.pl> <20040627101951.GJ12007@darkness.comp.waw.pl> <Pine.BSF.4.53.0407020749280.28103@e0-0.zab2.int.zabbadoz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--VwhLDKtaBdA5kSdP Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 02, 2004 at 07:52:29AM +0000, Bjoern A. Zeeb wrote: +> On Sun, 27 Jun 2004, Pawel Jakub Dawidek wrote: +> > +> If you give me a few days (maybe I'll be ready today) I'll try to p= repare +> > +> patch to commit so we can review it together. +> > +> > Ok, here it goes: +> > +> > http://people.freebsd.org/~pjd/patches/jail_enforce_statfs.patch +>=20 +>=20 +> in prison_canseemount shouldn't it be (pasted in by hand): +>=20 +> * Be sure that we don't have situation where jail's root dire= ctory +> * is "/some/path" and mount point is "/some/pathpath". +> */ +> - if (*sp->f_mntonname !=3D '\0' && *sp->f_mntonname !=3D '/') +> + if (*(sp->f_mntonname+len) !=3D '\0' && *(sp->f_mntonname+len)= !=3D '/') +> return (ENOENT); +> return (0); Yes, fixed, thanks! --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --VwhLDKtaBdA5kSdP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA5TGAForvXbEpPzQRAh4NAJ0RkeF3G1ce7Nv/m4KwKicgKLCVCwCg+bK2 v5gdNThwKdFW45etKPnFslQ= =4Alp -----END PGP SIGNATURE----- --VwhLDKtaBdA5kSdP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040702095721.GY12007>