Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 07:20:05 -0700 (PDT)
From:      Serge van den Boom <svdb@stack.nl>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/39329 '..' at mountpoint is subject to the permissions of the shadowed dir 
Message-ID:  <200210071420.g97EK5TT064652@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/39329; it has been noted by GNATS.

From: Serge van den Boom <svdb@stack.nl>
To: Lyndon Nerenberg <lyndon@orthanc.ab.ca>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/39329 '..' at mountpoint is subject to the permissions of
 the shadowed dir 
Date: Mon, 7 Oct 2002 16:16:05 +0200 (CEST)

 On Sun, 6 Oct 2002, Lyndon Nerenberg wrote:
 > I don't disagree with you. I, too, think the behaviour is a bit strange.
 > However, it has survived through at least one complete re-implementation
 > of namei and the filesystems (i.e. BSD), which makes me wonder if there
 > is a valid reason for the behaviour.
 I suspect that since the original '..' entry is used to determine where
 '..' goes to, the 'usual' code would read it in its original context,
 i.e. the original dir.
 Using the permissions of the new dir might be less than trivial, which may
 be the reason it is still as it is. Maybe it was something "to do later".
 That it had been that way in the earlier implementation of namei and the
 filesystems might have been more of an excuse than a reason for the later
 implementor(s). However, this is only speculation.
 
 > Kirk McKusick is probably one of the few people who can answer that
 > question.
 I take it he was one of the people involved in the implementation of namei
 and the filesystems currently in use? I think a mail in his direction
 couldn't hurt.
 
 Serge
 
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210071420.g97EK5TT064652>