From owner-freebsd-current Thu Oct 23 13:04:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA23641 for current-outgoing; Thu, 23 Oct 1997 13:03:55 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA23598 for ; Thu, 23 Oct 1997 13:03:32 -0700 (PDT) (envelope-from wosch@cs.tu-berlin.de) Received: from panke.panke.de (anonymous229.ppp.cs.tu-berlin.de [130.149.17.229]) by mail.cs.tu-berlin.de (8.8.6/8.8.7) with ESMTP id VAA08394; Thu, 23 Oct 1997 21:59:24 +0200 (MET DST) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id VAA01795; Thu, 23 Oct 1997 21:54:17 +0200 (MET DST) To: Bruce Evans Cc: karpen@ocean.campus.luth.se, current@FreeBSD.ORG Subject: Re: -STABLE reboots References: <199710220213.MAA22074@godzilla.zeta.org.au> From: Wolfram Schneider Date: 23 Oct 1997 21:54:14 +0200 In-Reply-To: Bruce Evans's message of Wed, 22 Oct 1997 12:13:50 +1000 Message-ID: Lines: 15 Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bruce Evans 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 http://www.apfel.de/~wosch/