From owner-freebsd-current Tue Oct 21 19:02:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA25912 for current-outgoing; Tue, 21 Oct 1997 19:02:08 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA25907 for ; Tue, 21 Oct 1997 19:02:05 -0700 (PDT) (envelope-from karpen@ocean.campus.luth.se) Received: (from karpen@localhost) by ocean.campus.luth.se (8.8.5/8.8.5) id EAA05605; Wed, 22 Oct 1997 04:09:07 +0200 (CEST) From: Mikael Karpberg Message-Id: <199710220209.EAA05605@ocean.campus.luth.se> Subject: Re: -STABLE reboots In-Reply-To: <199710220037.KAA17789@godzilla.zeta.org.au> from Bruce Evans at "Oct 22, 97 10:37:46 am" To: bde@zeta.org.au (Bruce Evans) Date: Wed, 22 Oct 1997 04:09:06 +0200 (CEST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk According to Bruce Evans: > 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? Or mount syscall (?) or mount_* programs checking if the arguments are the same, or so? Or am I missing something? /Mikael