Module Name:    src
Committed By:   pooka
Date:           Thu Oct 28 11:30:08 UTC 2010

Modified Files:
        src/sys/rump/librump/rumpkern: rump.c

Log Message:
Count proc0 as uid 0's process.  Besides being the right thing to
do, this effectively allows changing the uid of proc0 without
running into KASSERT problems in uidinfo code (although I'm not
quite so sure changing proc0's uid is the right thing to do ...).

problem reported by njoly


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.191 src/sys/rump/librump/rumpkern/rump.c:1.192
--- src/sys/rump/librump/rumpkern/rump.c:1.191	Wed Oct 27 20:44:49 2010
+++ src/sys/rump/librump/rumpkern/rump.c	Thu Oct 28 11:30:07 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump.c,v 1.191 2010/10/27 20:44:49 pooka Exp $	*/
+/*	$NetBSD: rump.c,v 1.192 2010/10/28 11:30:07 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.191 2010/10/27 20:44:49 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.192 2010/10/28 11:30:07 pooka Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -312,6 +312,8 @@
 
 	procinit();
 	proc0_init();
+	uid_init();
+	chgproccnt(0, 1);
 
 	l->l_proc = &proc0;
 	lwp_update_creds(l);
@@ -358,7 +360,6 @@
 	mksysctls();
 	kqueue_init();
 	iostat_init();
-	uid_init();
 	fd_sys_init();
 	module_init();
 	devsw_init();

Reply via email to