PERFORCE change 158665 for review

Marko Zec zec at FreeBSD.org
Wed Mar 4 04:07:09 PST 2009


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

Change 158665 by zec at zec_amdx2 on 2009/03/04 12:06:18

	Unbreak build.

Affected files ...

.. //depot/projects/vimage/src/sys/kern/kern_vimage.c#76 edit
.. //depot/projects/vimage/src/sys/net/if.c#68 edit

Differences ...

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

@@ -60,6 +60,7 @@
 #include <net/if_types.h>
 #include <net/if_var.h>
 #include <net/ethernet.h>
+#include <net/route.h>
 #include <net/vnet.h>
 
 struct vnet_modlink;
@@ -586,7 +587,7 @@
 	struct vimage *vip = TD_TO_VIMAGE(td);
 	struct vimage *vip_r = NULL;
 
-	error = priv_check(td, PRIV_ROOT);
+	error = priv_check(td, PRIV_REBOOT); /* XXX fixme MARKO */
 	if (error)
 		return (error);
 

==== //depot/projects/vimage/src/sys/net/if.c#68 (text+ko) ====

@@ -2093,7 +2093,7 @@
 	switch (cmd) {
 #ifdef VIMAGE
 	case SIOCSIFVIMAGE:
-		error = priv_check(td, PRIV_ROOT);
+		error = priv_check(td, PRIV_REBOOT); /* XXX fixme */
 		if (error == 0)
 			error = vi_if_move((struct vi_req *) data, NULL,
 			    TD_TO_VIMAGE(td));


More information about the p4-projects mailing list