userns: Add a limit on the number of user namespaces
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 8 Aug 2016 18:41:24 +0000 (13:41 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 8 Aug 2016 18:41:24 +0000 (13:41 -0500)
commitb376c3e1b6770ddcb4f0782be16358095fcea0b6
tree30789f9f1e84abe4d25a52e2fcad209504c181bf
parentdbec28460a89aa7c02c3301e9e108d98272549d2
userns: Add a limit on the number of user namespaces

Export the export the maximum number of user namespaces as
/proc/sys/userns/max_user_namespaces.

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