]> git.baikalelectronics.ru Git - kernel.git/commit
pidns: Capture the user namespace and filter ns_last_pid
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 2 Aug 2012 11:25:10 +0000 (04:25 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 19 Nov 2012 13:57:31 +0000 (05:57 -0800)
commit63f015baa8f2c18134e54501a85e1e93aa576e5b
tree06540b59a9d302687fd0519239729c1612d0e2b7
parent0a514a91f7d249d5e402d51fc5015fe8bd4651c9
pidns: Capture the user namespace and filter ns_last_pid

- Capture the the user namespace that creates the pid namespace
- Use that user namespace to test if it is ok to write to
  /proc/sys/kernel/ns_last_pid.

Zhao Hongjiang <zhaohongjiang@huawei.com> noticed I was missing a put_user_ns
in when destroying a pid_ns.  I have foloded his patch into this one
so that bisects will work properly.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/pid_namespace.h
kernel/nsproxy.c
kernel/pid.c
kernel/pid_namespace.c