kernel-ark/arch/um/kernel
Sukadev Bhattiprolu f400e198b2 [PATCH] pidspace: is_init()
This is an updated version of Eric Biederman's is_init() patch.
(http://lkml.org/lkml/2006/2/6/280).  It applies cleanly to 2.6.18-rc3 and
replaces a few more instances of ->pid == 1 with is_init().

Further, is_init() checks pid and thus removes dependency on Eric's other
patches for now.

Eric's original description:

	There are a lot of places in the kernel where we test for init
	because we give it special properties.  Most  significantly init
	must not die.  This results in code all over the kernel test
	->pid == 1.

	Introduce is_init to capture this case.

	With multiple pid spaces for all of the cases affected we are
	looking for only the first process on the system, not some other
	process that has pid == 1.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: <lxc-devel@lists.sourceforge.net>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-29 09:18:12 -07:00
..
skas [PATCH] uml: remove pte_mkexec 2006-09-29 09:18:04 -07:00
tt [PATCH] uml: remove syscall debugging 2006-07-10 13:24:24 -07:00
asm-offsets.c
config.c.in
dyn.lds.S [PATCH] vDSO hash-style fix 2006-07-31 13:28:43 -07:00
exec.c [PATCH] UML: tty locking 2006-09-26 08:49:09 -07:00
exitcode.c [PATCH] uml: locking documentation 2006-09-29 09:18:04 -07:00
gmon_syms.c [PATCH] uml: fix gcov support 2006-09-27 08:26:16 -07:00
gprof_syms.c
init_task.c
initrd.c
irq.c [PATCH] uml: SIGIO cleanups 2006-09-26 08:49:07 -07:00
ksyms.c [PATCH] uml: add an export 2006-09-27 08:26:16 -07:00
Makefile [PATCH] uml: file renaming 2006-09-27 08:26:16 -07:00
mem.c [PATCH] uml: get rid of ZONE_DMA use 2006-09-27 08:26:15 -07:00
physmem.c [PATCH] uml: fix static binary segfault 2006-07-10 13:24:23 -07:00
process.c [PATCH] uml: file renaming 2006-09-27 08:26:16 -07:00
ptrace.c [PATCH] drop task argument of audit_syscall_{entry,exit} 2006-05-01 06:06:18 -04:00
reboot.c [PATCH] uml: Use ARRAY_SIZE more assiduously 2006-09-26 08:49:05 -07:00
resource.c
sigio.c [PATCH] uml: move _kern.c files 2006-07-10 13:24:24 -07:00
signal.c [PATCH] uml: move _kern.c files 2006-07-10 13:24:24 -07:00
smp.c [PATCH] pidhash: don't count idle threads 2006-03-28 18:36:41 -08:00
syscall.c [PATCH] UML - fix utsname build breakage 2006-07-15 14:42:24 -07:00
sysrq.c
time.c [PATCH] uml: fix sleep length bug 2006-09-27 08:26:16 -07:00
tlb.c [PATCH] uml: Whitespace fixes 2006-09-26 08:49:06 -07:00
trap.c [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
uaccess.c
um_arch.c [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
umid.c
uml.lds.S [PATCH] uml: fix static binary segfault 2006-07-10 13:24:23 -07:00
vmlinux.lds.S [PATCH] uml: tidy biarch gcc support 2006-07-14 21:53:52 -07:00