From owner-freebsd-fs@FreeBSD.ORG Fri Aug 15 13:50:52 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1898B1065681 for ; Fri, 15 Aug 2008 13:50:52 +0000 (UTC) (envelope-from gw.freebsd@tnode.com) Received: from druga.org (druga.org [193.2.157.120]) by mx1.freebsd.org (Postfix) with ESMTP id BC8118FC1B for ; Fri, 15 Aug 2008 13:50:51 +0000 (UTC) (envelope-from gw.freebsd@tnode.com) Received: from localhost ([127.0.0.1]) by druga.org with esmtp id 1KTzeV-00071t-K4; Fri, 15 Aug 2008 15:47:39 +0200 Received: from druga.org ([127.0.0.1]) by localhost (druga.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25620-05; Fri, 15 Aug 2008 15:47:39 +0200 (CEST) Received: from bsn-61-61-169.dial-up.dsl.siol.net ([86.61.61.169] helo=[127.0.0.1]) by druga.org with esmtpa id 1KTzeV-00071o-Dm; Fri, 15 Aug 2008 15:47:39 +0200 Message-ID: <48A58905.5080100@tnode.com> Date: Fri, 15 Aug 2008 15:47:49 +0200 From: GW User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <48A0B6E5.3000000@skoberne.net> In-Reply-To: <48A0B6E5.3000000@skoberne.net> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: at Druga.org Cc: Mitar Subject: Re: fchroot on unionfs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 13:50:52 -0000 Nejc Škoberne wrote: > I have a strange problem with Apache not seeing the lower layer of > unionfs. Using > ktrace on Apache I have written this C code: > So without fchdir() call this program just displays (first 511 bytes) of > /etc/hosts. > If I uncomment fchdir() call with precedent open(".",...) call, I get this: Hm, I tried to recreate this, but all attempts failed (mount above/below, run program directly/in chroot/in jail and under root or www user). So it seems that it is either fixed or something else on the system was set differently (sysctl?). lp, gregor