From owner-freebsd-current Thu Oct 23 11:22:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA16344 for current-outgoing; Thu, 23 Oct 1997 11:22:56 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.5.85]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA16337; Thu, 23 Oct 1997 11:22:53 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.7/8.8.7) id LAA16609; Thu, 23 Oct 1997 11:22:50 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp04.primenet.com, id smtpd016600; Thu Oct 23 11:22:40 1997 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id LAA29050; Thu, 23 Oct 1997 11:22:29 -0700 (MST) From: Terry Lambert Message-Id: <199710231822.LAA29050@usr02.primenet.com> Subject: Re: Recursive mount [ was Re: -STABLE reboots ] To: kato@migmatite.eps.nagoya-u.ac.jp (KATO Takenori) Date: Thu, 23 Oct 1997 18:22:29 +0000 (GMT) Cc: dwmalone@maths.tcd.ie, current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG In-Reply-To: <199710221247.VAA01644@gneiss.eps.nagoya-u.ac.jp> from "KATO Takenori" at Oct 22, 97 09:47:53 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Could someone add a sysctl to current that makes > > mount a privilaged syscall? > > How about following patch? [ ... ] Makeing mount priveledged is a kludge. Is this a production environment patch? If so, I'll let the discussion go... otherwise, the mount code needs changed. Specifically, the mapping into the hierarchy and the NFS export management should be in the upper level code instead of per VFS. There's not really any conceptual difference between root and non-root mounts, once the greation of a mount struct instance is abstracted from it's mapping into the FS hierarchy by moving the latter into common code. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.