linux/drivers
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
..
acorn i2c-algo-bit: Discard the mdelay data struct member 2006-09-26 15:38:51 -07:00
acpi [PATCH] Really ignore kmem_cache_destroy return value 2006-09-27 08:26:10 -07:00
amba
ata [libata] Don't use old-EH ->eng_timeout() hook when not needed 2006-09-27 05:41:13 -04:00
atm [ATM] he: Fix __init/__devinit conflict 2006-09-24 20:09:33 -07:00
base [PATCH] kthread: drivers/base/firmware_class.c 2006-09-29 09:18:08 -07:00
block [PATCH] kthread: convert loop.c to kthread 2006-09-29 09:18:06 -07:00
bluetooth [Bluetooth] Code cleanup for the HCI UART driver 2006-09-28 18:01:30 -07:00
cdrom
char [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
clocksource
connector
cpufreq [CPUFREQ] Fix some more CPU hotplug locking. 2006-09-22 19:15:23 -04:00
crypto [CRYPTO] padlock: Convert padlock-sha to use crypto_hash 2006-09-21 11:46:22 +10:00
dio
dma
edac
eisa [PATCH] EISA bus MODALIAS attributes support 2006-09-27 08:26:19 -07:00
fc4
firmware [PATCH] DMI: Decode and save OEM String information 2006-09-29 09:18:09 -07:00
hwmon hwmon: Remove Yuan Mu's address 2006-09-28 15:31:19 -07:00
i2c Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2006-09-28 14:40:39 -07:00
ide Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 2006-09-26 11:49:46 -07:00
ieee1394 i2c-algo-bit: Discard the mdelay data struct member 2006-09-26 15:38:51 -07:00
infiniband [IPV4]: annotate inetdev.h helpers 2006-09-28 18:01:05 -07:00
input [PATCH] OMAP: Add keypad driver 2006-09-29 09:18:07 -07:00
isdn [IPV4]: annotate struct in_ifaddr 2006-09-28 18:00:55 -07:00
leds [PATCH] Make net48xx-led use scx200_gpio_ops 2006-09-29 09:18:06 -07:00
macintosh [PATCH] Fix uninitialised spinlock in via-pmu-backlight code. 2006-09-29 09:18:03 -07:00
mca
md [BLOCK] dm-crypt: trivial comment improvements 2006-09-21 11:46:27 +10:00
media USB: Dealias -110 code (more complete) 2006-09-27 11:59:00 -07:00
message
mfd [PATCH] ucb1x00-ts: handle errors from input_register_device() 2006-09-29 09:18:10 -07:00
misc [PATCH] inode-diet: Eliminate i_blksize from the inode structure 2006-09-27 08:26:18 -07:00
mmc Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2006-09-28 14:40:39 -07:00
mtd [MTD] Whitespace cleanup in SSFDC driver. 2006-09-23 16:20:48 +01:00
net [PATCH] Move valid_dma_direction() from x86_64 to generic code 2006-09-29 09:18:10 -07:00
nubus
oprofile [PATCH] inode-diet: Eliminate i_blksize from the inode structure 2006-09-27 08:26:18 -07:00
parisc
parport
pci [PATCH] msi: use kmem_cache_zalloc() 2006-09-27 08:26:19 -07:00
pcmcia
pnp
rapidio
rtc rtc: New RTC driver for SuperH On-Chip RTC. 2006-09-27 17:13:19 +09:00
s390 [IPV4]: inet_addr_type() annotations 2006-09-28 18:01:07 -07:00
sbus [OPENPROMIO]: Handle current_node being NULL correctly. 2006-09-18 01:47:13 -07:00
scsi [PATCH] EISA bus MODALIAS attributes support 2006-09-27 08:26:19 -07:00
serial Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2006-09-28 14:40:39 -07:00
sh
sn
spi
tc
telephony
usb USB: fix build error in ohci driver 2006-09-28 17:06:45 -07:00
video Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2006-09-28 14:40:39 -07:00
w1
zorro
Kconfig
Makefile