userns: Generalize the user namespace count into ucount
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 8 Aug 2016 19:41:52 +0000 (14:41 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 8 Aug 2016 19:41:52 +0000 (14:41 -0500)
commit25f9c0817c535a728c1088542230fa327c577c9e
tree50e60f8d962702d92b94392d536a1c71d77c851c
parentf6b2db1a3e8d141dd144df58900fb0444d5d7c53
userns: Generalize the user namespace count into ucount

The same kind of recursive sane default limit and policy
countrol that has been implemented for the user namespace
is desirable for the other namespaces, so generalize
the user namespace refernce count into a ucount.

Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/user_namespace.h
kernel/fork.c
kernel/ucount.c
kernel/user_namespace.c