Bug#295146: kernel: can delete root directories
On Mon, Feb 14, 2005 at 07:15:37AM +0100, Goswin von Brederlow wrote:
> > a) do you actually have something mounted on that directory at the time?
> > b) strace of rmdir, please
>
> c) rights to delete are governed by the directory the thing to delete
> is in and not by the thing itself. The rights of '1' are irelevant if
> it is empty.
Incorrect. If foo/bar is a mountpoint and whatever is mounted on it happens
to be empty, rmdir("foo/bar") still should fail, no matter what you can do
to foo.
Reply to: