Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 18:56:01 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 11380 for review
Message-ID:  <200205160156.g4G1u1H49694@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205160156.g4G1u1H49694>