PERFORCE change 161804 for review

Marko Zec zec at FreeBSD.org
Sat May 9 01:56:41 UTC 2009


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

Change 161804 by zec at zec_tpx32 on 2009/05/09 01:56:12

	Add a crude check for API / ABI version mismatches when
	processing vimage / vnet management requests.

Affected files ...

.. //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#36 edit

Differences ...

==== //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#36 (text+ko) ====

@@ -334,6 +334,10 @@
 	struct vimage *vip = TD_TO_VIMAGE(td);
 	struct vimage *vip_r = NULL;
 
+	/* Check for API / ABI version mismatch. */
+	if (vi_req->vi_api_cookie != VI_API_COOKIE)
+		return (EDOOFUS);
+
 #if 0
 	error = priv_check(td, PRIV_ROOT);
 	if (error)


More information about the p4-projects mailing list