From owner-cvs-all Sun Aug 18 23:52:27 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 129A337B400; Sun, 18 Aug 2002 23:52:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA51E43E72; Sun, 18 Aug 2002 23:52:21 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from freefall.freebsd.org (phk@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7J6qLJU010003; Sun, 18 Aug 2002 23:52:21 -0700 (PDT) (envelope-from phk@freefall.freebsd.org) Received: (from phk@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7J6qLLK010002; Sun, 18 Aug 2002 23:52:21 -0700 (PDT) Message-Id: <200208190652.g7J6qLLK010002@freefall.freebsd.org> From: Poul-Henning Kamp Date: Sun, 18 Aug 2002 23:52:21 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_mount.c src/sys/sys mount.h src/sys/security/lomac kernel_util.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2002/08/18 23:52:21 PDT Modified files: sys/kern vfs_mount.c sys/sys mount.h sys/security/lomac kernel_util.c Log: Keep a copy of the credential used to mount filesystems around so we can check and use it later on. Change the pieces of code which relied on mount->mnt_stat.f_owner to check which user mounted the filesystem. This became needed as the EA code needs to be able to allocate blocks for "system" EA users like ACLs. There seems to be some half-baked (probably only quarter- actually) notion that the superuser for a given filesystem is the user who mounted it, but this has far from been carried through. It is unclear if it should be. Sponsored by: DARPA & NAI Labs. Revision Changes Path 1.83 +7 -3 src/sys/kern/vfs_mount.c 1.8 +1 -1 src/sys/security/lomac/kernel_util.c 1.140 +1 -0 src/sys/sys/mount.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message