From owner-freebsd-current@FreeBSD.ORG Fri Jul 2 16:48:30 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E8FB16A4CE; Fri, 2 Jul 2004 16:48:30 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA20F43D41; Fri, 2 Jul 2004 16:48:29 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 0CC80ACB34; Fri, 2 Jul 2004 11:57:21 +0200 (CEST) Date: Fri, 2 Jul 2004 11:57:21 +0200 From: Pawel Jakub Dawidek To: "Bjoern A. Zeeb" Message-ID: <20040702095721.GY12007@darkness.comp.waw.pl> References: <20040627065932.GH12007@darkness.comp.waw.pl> <20040627101951.GJ12007@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VwhLDKtaBdA5kSdP" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: Robert Watson cc: FreeBSD current users Subject: Re: jail getfsstat patches. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 02 Jul 2004 16:48:30 -0000 --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--