6481274 zone_set_root() should not directly access private vnode field vp->v_vfsmountedhere
authoreh208807
Fri, 08 Jun 2007 11:35:50 -0700
changeset 4417 01a30d05049f
parent 4416 33a45c00f0b9
child 4418 27eebfe9b96b
6481274 zone_set_root() should not directly access private vnode field vp->v_vfsmountedhere
usr/src/uts/common/os/zone.c
--- a/usr/src/uts/common/os/zone.c	Fri Jun 08 08:31:17 2007 -0700
+++ b/usr/src/uts/common/os/zone.c	Fri Jun 08 11:35:50 2007 -0700
@@ -2415,7 +2415,7 @@
 			 * Get the new 'vp' if so.
 			 */
 			if ((error = VOP_ACCESS(vp, VEXEC, 0, CRED())) == 0 &&
-			    (vp->v_vfsmountedhere == NULL ||
+			    (!vn_ismntpt(vp) ||
 			    (error = traverse(&vp)) == 0)) {
 				pathlen = pn.pn_pathlen + 2;
 				path = kmem_alloc(pathlen, KM_SLEEP);