pid namespaces: changes to show virtual ids to user
Pavel Emelyanov authored
This is the largest patch in the set. Make all (I hope) the places where
the pid is shown to or get from user operate on the virtual pids.

The idea is:
 - all in-kernel data structures must store either struct pid itself
   or the pid's global nr, obtained with pid_nr() call;
 - when seeking the task from kernel code with the stored id one
   should use find_task_by_pid() call that works with global pids;
 - when showing pid's numerical value to the user the virtual one
   should be used, but however when one shows task's pid outside this
   task's namespace the global one is to be used;
 - when getting the pid from userspace one need to consider this as
   the virtual one and use appropriate task/pid-searching functions.

[akpm@linux-foundation.org: build fix]
[akpm@linux-foundation.org: nuther build fix]
[akpm@linux-foundation.org: yet nuther build fix]
[akpm@linux-foundation.org: remove unneeded casts]
Signed-off-by: Pavel Emelyanov <xemul@openvz.org...
b488893a
Name Last commit Last update
..
irq Compile handle_percpu_irq even for uniprocessor kernels
power Hibernation: Enter platform hibernation state in a consistent way
time kernel/time/clocksource.c: Use list_for_each_entry instead of list_for_each
.gitignore gitignore: ignore more generated files
Kconfig.hz [PATCH] HZ: 300Hz support
Kconfig.preempt Move PREEMPT_NOTIFIERS into an always-included Kconfig
Makefile cgroups: implement namespace tracking subsystem
acct.c whitespace fixes: process accounting
audit.c whitespace fixes: system auditing
audit.h Audit: add TTY input auditing
auditfilter.c whitespace fixes: audit filtering
auditsc.c whitespace fixes: syscall auditing
capability.c pid namespaces: changes to show virtual ids to user
cgroup.c Add cgroupstats
cgroup_debug.c Task Control Groups: simple task cgroup debug info subsystem
compat.c Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt
configs.c use simple_read_from_buffer in kernel/
cpu.c cpu hotplug: cpu: deliver CPU_UP_CANCELED only to NOTIFY_OKed callbacks with CPU_UP_PREPARE
cpu_acct.c Task Control Groups: example CPU accounting subsystem
cpuset.c Task Control Groups: make cpusets a client of cgroups
delayacct.c Add scaled time to taskstats based process accounting
dma.c whitespace fixes: DMA channel allocator
exec_domain.c whitespace fixes: execution domains
exit.c pid namespaces: changes to show virtual ids to user
extable.c [PATCH] symbol_put_addr() locks kernel
fork.c pid namespaces: changes to show virtual ids to user
futex.c pid namespaces: changes to show virtual ids to user
futex_compat.c pid namespaces: changes to show virtual ids to user
hrtimer.c hrtimer: Rework hrtimer_nanosleep to make sys_compat_nanosleep easier
itimer.c whitespace fixes: interval timers
kallsyms.c kallsyms: make KSYM_NAME_LEN include space for trailing '\0'
kexec.c pid namespaces: define is_global_init() and is_container_init()
kfifo.c is_power_of_2: kernel/kfifo.c
kmod.c Restore call_usermodehelper_pipe() behaviour
kprobes.c kprobes: support kretprobe blacklist
ksysfs.c add-vmcore: cleanup the coding style according to Andrew's comments
kthread.c kthread: silence bogus section mismatch warning
latency.c [PATCH] severing module.h->sched.h
lockdep.c workqueue: debug flushing deadlocks with lockdep
lockdep_internals.h [PATCH] lockdep: more chains
lockdep_proc.c lockdep: Avoid /proc/lockdep & lock_stat infinite output
module.c whitespace fixes: module loading
mutex-debug.c [PATCH] remove many unneeded #includes of sched.h
mutex-debug.h [PATCH] lockdep: better lock debugging
mutex.c lockdep: fixup mutex annotations
mutex.h [PATCH] lockdep: prove mutex locking correctness
notifier.c Add kernel/notifier.c
ns_cgroup.c cgroups: implement namespace tracking subsystem
nsproxy.c pid namespaces: allow cloning of new namespace
panic.c whitespace fixes: panic handling
params.c
pid.c
posix-cpu-timers.c
posix-timers.c
printk.c
profile.c
ptrace.c
rcupdate.c
rcutorture.c
relay.c
resource.c
rtmutex-debug.c
rtmutex-debug.h
rtmutex-tester.c
rtmutex.c
rtmutex.h
rtmutex_common.h
rwsem.c
sched.c
sched_debug.c
sched_fair.c
sched_idletask.c
sched_rt.c
sched_stats.h
seccomp.c
signal.c
softirq.c
softlockup.c
spinlock.c
srcu.c
stacktrace.c
stop_machine.c
sys.c
sys_ni.c
sysctl.c
sysctl_check.c
taskstats.c
time.c
timer.c
tsacct.c
uid16.c
user.c
user_namespace.c
utsname.c
utsname_sysctl.c
wait.c
workqueue.c