Re: rmdir of one's pwd

Alexander Viro (viro@math.psu.edu)
Mon, 15 Feb 1999 17:12:47 -0500 (EST)


[Sorry for followup to my own posting, but..]
On Mon, 15 Feb 1999, Alexander Viro wrote:
>
> On Mon, 15 Feb 1999 Andries.Brouwer@cwi.nl wrote:

> > As mentioned already, we need write permission as soon as we change
> > a name in a directory. We need execute (search) permission in all
> > directories involved, including the final ones where we'll write.
> Agreed. Test added.

On the second thought... Execute permissions on a directory are needed
only to access files referenced from it. All we need to change is the
contents of directory, not inodes referenced from it. It's ?w?, not ?wx.
Other implementations also ignore execute permissions happily (and do
require write permissions). I don't have POSIX right now, but I've looked
into SUS2 and it also speaks only about wrte permissions. So I'm reverting
the change.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/