PERFORCE change 42811 for review

Robert Watson rwatson at FreeBSD.org
Thu Nov 20 11:20:55 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=42811

Change 42811 by rwatson at rwatson_tislabs on 2003/11/20 11:20:17

	If using MAC, force MNT_MULTILABEL in devfs mounts so that
	we don't "create"/"associate" vnodes more than once.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/miscfs/devfs/devfs_vfsops.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/miscfs/devfs/devfs_vfsops.c#2 (text+ko) ====

@@ -156,6 +156,9 @@
 	mp->mnt_stat.f_fsid.val[0] = (int32_t)(void *)devfs_mp_p;
 	mp->mnt_stat.f_fsid.val[1] = mp->mnt_stat.f_type;
 	mp->mnt_flag |= MNT_LOCAL;
+#ifdef MAC
+	mp->mnt_flag |= MNT_MULTILABEL;
+#endif
 
 	DEVFS_LOCK(p);
 	error = dev_dup_plane(devfs_mp_p);


More information about the p4-projects mailing list