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>
This commit is contained in:
@@ -30,6 +30,7 @@ enum ucount_type {
|
||||
UCOUNT_UTS_NAMESPACES,
|
||||
UCOUNT_IPC_NAMESPACES,
|
||||
UCOUNT_NET_NAMESPACES,
|
||||
UCOUNT_MNT_NAMESPACES,
|
||||
UCOUNT_CGROUP_NAMESPACES,
|
||||
UCOUNT_COUNTS,
|
||||
};
|
||||
|
Reference in New Issue
Block a user