From owner-p4-projects Wed May 15 18:56: 6 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F172937B404; Wed, 15 May 2002 18:56:02 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2401637B401 for ; Wed, 15 May 2002 18:56:02 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4G1u1H49694 for perforce@freebsd.org; Wed, 15 May 2002 18:56:01 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 15 May 2002 18:56:01 -0700 (PDT) Message-Id: <200205160156.g4G1u1H49694@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 11380 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11380 Change 11380 by rwatson@rwatson_curry on 2002/05/15 18:55:50 With the introduction of vfs_nmount(), there were two points where struct mount was initialized. We called mac_init_mount() only at the old location. This fixes unmount of various filesystems now updated to use nmount. Affected files ... ... //depot/projects/trustedbsd/mac/sys/kern/vfs_syscalls.c#42 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/vfs_syscalls.c#42 (text+ko) ==== @@ -528,6 +528,9 @@ mp->mnt_stat.f_owner = td->td_ucred->cr_uid; strncpy(mp->mnt_stat.f_mntonname, fspath, MNAMELEN); mp->mnt_iosize_max = DFLTPHYS; +#ifdef MAC + mac_init_mount(mp); +#endif VOP_UNLOCK(vp, 0, td); mp->mnt_opt = optlist; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message