--- ./kernel/fork.c.rootu	2006-05-11 13:05:49.000000000 +0400
+++ ./kernel/fork.c	2006-06-08 11:37:18.000000000 +0400
@@ -951,7 +951,7 @@ struct task_struct *copy_process(unsigne
 	if (atomic_read(&p->user->processes) >=
 			p->rlim[RLIMIT_NPROC].rlim_cur) {
 		if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RESOURCE) &&
-				p->user != &root_user)
+				p->user->uid != 0)
 			goto bad_fork_free;
 	}
 
--- ./kernel/sys.c.rootu	2006-05-11 13:05:47.000000000 +0400
+++ ./kernel/sys.c	2006-06-08 11:36:28.000000000 +0400
@@ -779,7 +779,7 @@ int set_user(uid_t new_ruid, int dumpcle
 
 	if (atomic_read(&new_user->processes) >=
 				current->rlim[RLIMIT_NPROC].rlim_cur &&
-			new_user != &root_user) {
+			new_ruid != 0) {
 		free_uid(new_user);
 		return -EAGAIN;
 	}
