mntns: Add a limit on the number of mount namespaces.
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 8 Aug 2016 19:37:37 +0000 (14:37 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 31 Aug 2016 12:28:35 +0000 (07:28 -0500)
commit537f7ccb396804c6d0057b93ba8eb104ba44f851
tree0fbb44ee9bb13aed8c9e3fedede97c07dcf2a4da
parent703286608a220d53584cca5986aad5305eec75ed
mntns: Add a limit on the number of mount namespaces.

v2: Fixed the very obvious lack of setting ucounts
    on struct mnt_ns reported by Andrei Vagin, and the kbuild
    test report.

Reported-by: Andrei Vagin <avagin@openvz.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/mount.h
fs/namespace.c
include/linux/user_namespace.h
kernel/ucount.c