From owner-freebsd-current@FreeBSD.ORG Fri Jul 2 08:05:23 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 0CD5D16A4CE for ; Fri, 2 Jul 2004 08:05:23 +0000 (GMT) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 748AB43D1F for ; Fri, 2 Jul 2004 08:05:22 +0000 (GMT) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id D2F191FFDDB for ; Fri, 2 Jul 2004 10:04:08 +0200 (CEST) Received: by transport.cksoft.de (Postfix, from userid 66) id D3AD81FFDD9; Fri, 2 Jul 2004 10:04:06 +0200 (CEST) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id EB211154BC; Fri, 2 Jul 2004 08:03:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.int.zabbadoz.net (Postfix) with ESMTP id E09BF15389 for ; Fri, 2 Jul 2004 08:03:52 +0000 (UTC) Date: Fri, 2 Jul 2004 08:03:52 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@e0-0.zab2.int.zabbadoz.net To: FreeBSD current users In-Reply-To: <20040627101951.GJ12007@darkness.comp.waw.pl> Message-ID: References: <20040627101951.GJ12007@darkness.comp.waw.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de 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 08:05:23 -0000 On Sun, 27 Jun 2004, Pawel Jakub Dawidek wrote: > On Sun, Jun 27, 2004 at 08:59:32AM +0200, Pawel Jakub Dawidek wrote: > +> If you give me a few days (maybe I'll be ready today) I'll try to prepare > +> patch to commit so we can review it together. > > Ok, here it goes: > > http://people.freebsd.org/~pjd/patches/jail_enforce_statfs.patch in prison_canseemount shouldn't it be (pasted in by hand): * Be sure that we don't have situation where jail's root directory * is "/some/path" and mount point is "/some/pathpath". */ - if (*sp->f_mntonname != '\0' && *sp->f_mntonname != '/') + if (*(sp->f_mntonname+len) != '\0' && *(sp->f_mntonname+len) != '/') return (ENOENT); return (0); -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT