From owner-freebsd-hackers Wed Oct 2 3:45:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC2EA37B401 for ; Wed, 2 Oct 2002 03:45:39 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id E926643E4A for ; Wed, 2 Oct 2002 03:45:38 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g92AjamC066300 for ; Wed, 2 Oct 2002 12:45:37 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g92AjaMU066299; Wed, 2 Oct 2002 12:45:36 +0200 (CEST) Date: Wed, 2 Oct 2002 12:45:36 +0200 (CEST) Message-Id: <200210021045.g92AjaMU066299@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG Reply-To: freebsd-hackers@FreeBSD.ORG Subject: Re: Getfsstat(2), statfs(2) and fstatfs(2) jailed. In-Reply-To: <20021001213848.GK19012@garage.freebsd.pl> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Pawel Jakub Dawidek wrote: > With this kernel module for FreeBSD 4.x process in jail can see only > file systems that are mounted in jail's chroot directory. > > For example if we have mounted: > [...] Also see PR 26740: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/26740 BTW, does your patch work if the process that created the jail was already chrooted (possibly with a root different from the root of the process that mounted the filesystem)? There are a lot of non-trivial cases ... Another issue might be the degraded efficiency if there are a lot of mounts (I mean _really_ many). Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message