summaryrefslogtreecommitdiffstats
path: root/include/linux/user_namespace.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2016-08-08 14:37:37 -0500
committerEric W. Biederman <ebiederm@xmission.com>2016-08-31 07:28:35 -0500
commit537f7ccb396804c6d0057b93ba8eb104ba44f851 (patch)
tree0fbb44ee9bb13aed8c9e3fedede97c07dcf2a4da /include/linux/user_namespace.h
parent703286608a220d53584cca5986aad5305eec75ed (diff)
downloadlinux-stable-537f7ccb396804c6d0057b93ba8eb104ba44f851.tar.gz
linux-stable-537f7ccb396804c6d0057b93ba8eb104ba44f851.tar.bz2
linux-stable-537f7ccb396804c6d0057b93ba8eb104ba44f851.zip
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>
Diffstat (limited to 'include/linux/user_namespace.h')
-rw-r--r--include/linux/user_namespace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h
index c6bc980b06a9..30ffe10cda18 100644
--- a/include/linux/user_namespace.h
+++ b/include/linux/user_namespace.h
@@ -30,6 +30,7 @@ enum ucount_type {
UCOUNT_UTS_NAMESPACES,
UCOUNT_IPC_NAMESPACES,
UCOUNT_NET_NAMESPACES,
+ UCOUNT_MNT_NAMESPACES,
UCOUNT_CGROUP_NAMESPACES,
UCOUNT_COUNTS,
};