Skip site navigation (1)Skip section navigation (2)
Date:      23 Oct 1997 21:54:14 +0200
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        karpen@ocean.campus.luth.se, current@FreeBSD.ORG
Subject:   Re: -STABLE reboots
Message-ID:  <p1iiuuodzmh.fsf@panke.panke.de>
In-Reply-To: Bruce Evans's message of Wed, 22 Oct 1997 12:13:50 %2B1000
References:  <199710220213.MAA22074@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> writes:
> >> The problem is more serious in -current, since mount(2) is unprivileged,
> >> so even `mount /foo /foo' panics (if the mounter is root or owns /foo).
> >
> >Er... Isn't that easilly solvable by mount checking for the two arguments
> >being the same?
> 
> Of course not, or it would have been fixed years ago.  `mkdir foo; ln foo
> bar; mount foo bar' also panics.  Checking inodes isn't enough either,
> since `mkdir foo foo/foo; mount foo/foo foo' also panics.

But it would fix the problem for *users* in most cases.

-- 
Wolfram Schneider   <wosch@apfel.de>   http://www.apfel.de/~wosch/



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