From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 16 21:05:32 2010 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC3081065673; Mon, 16 Aug 2010 21:05:32 +0000 (UTC) (envelope-from svdb@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id 9E26C8FC17; Mon, 16 Aug 2010 21:05:32 +0000 (UTC) Received: from toad.stack.nl (toad.stack.nl [IPv6:2001:610:1108:5010::135]) by mx1.stack.nl (Postfix) with ESMTP id F339D1DD646; Mon, 16 Aug 2010 23:05:31 +0200 (CEST) Received: by toad.stack.nl (Postfix, from userid 1106) id DC5823F465; Mon, 16 Aug 2010 23:05:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by toad.stack.nl (Postfix) with ESMTP id D2ABD3F43C; Mon, 16 Aug 2010 23:05:31 +0200 (CEST) Date: Mon, 16 Aug 2010 23:05:31 +0200 (CEST) From: Serge van den Boom To: arundel@FreeBSD.org In-Reply-To: <201008161924.o7GJOFvD052933@freefall.freebsd.org> Message-ID: References: <201008161924.o7GJOFvD052933@freefall.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/39329: [mount] '..' at mountpoint is subject to the permissions of the shadowed dir X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 21:05:32 -0000 On Mon, 16 Aug 2010, arundel@FreeBSD.org wrote: > Synopsis: [mount] '..' at mountpoint is subject to the permissions of > the shadowed dir > > State-Changed-From-To: open->feedback > State-Changed-By: arundel > State-Changed-When: Mon Aug 16 19:09:35 UTC 2010 > State-Changed-Why: > Does this issue still exist? I wasn't able to reproduce the problem > running a recent HEAD checkout (r211163): > > # mkdir /mnt/tmp > # chown root:wheel /mnt/tmp > # chmod 700 /mnt/tmp > # mount -t msdosfs /dev/da0 /mnt/tmp > # chmod 755 /mnt/tmp > # ls -lad /mnt/tmp/.* > drwx------ 1 root wheel 4096 Jan 1 1980 /mnt/tmp/. > drwxr-xr-x 5 root wheel 512 Aug 16 21:05 /mnt/tmp/.. > $ ls -lad /mnt/tmp/.* > ls: /mnt/tmp/.*: Permission denied > > http://www.freebsd.org/cgi/query-pr.cgi?pr=39329 The most recent FreeBSD system I have root access to at the moment has a FreeBSD 8.0-RELEASE kernel. After asking around, though, it appears that the original issue still exists on at least r210462. However, when I use an msdosfs file system, I get the same behaviour as you did. I can reproduce the original issue using a file system created like this: # dd if=/dev/zero of=/tmp/foo bs=1024 count=1024 # mdconfig -a -t vnode -f /tmp/foo # newfs /dev/md0 Regards, Serge