From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 16 20:40:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 456D91065670 for ; Mon, 16 Aug 2010 20:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 343868FC0A for ; Mon, 16 Aug 2010 20:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7GKe4rX024022 for ; Mon, 16 Aug 2010 20:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7GKe435024021; Mon, 16 Aug 2010 20:40:04 GMT (envelope-from gnats) Date: Mon, 16 Aug 2010 20:40:04 GMT Message-Id: <201008162040.o7GKe435024021@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jilles Tjoelker Cc: 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 Reply-To: Jilles Tjoelker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 20:40:04 -0000 The following reply was made to PR kern/39329; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, svdb@stack.nl, arundel@freebsd.org Cc: Subject: Re: kern/39329: [mount] '..' at mountpoint is subject to the permissions of the shadowed dir Date: Mon, 16 Aug 2010 22:35:57 +0200 I do not remember any change that would affect this, and indeed I can reproduce this on 9-current. With ufs (via mdmfs) and tmpfs, this proceeds similar to what arundel has posted. With msdosfs, the chmod command silently does nothing (as is also visible in the output), so it is necessary to use the -m option to set the permissions, like mount -t msdosfs -o -m=755 /dev/md0 /mnt However, in all three cases the result is the same: an ls -la by a regular user shows an entry for . and complains about Permission denied for .. -- Jilles Tjoelker