diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2016-08-08 14:25:30 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-08-08 14:42:03 -0500 |
commit | d08311dd6fd8444e39710dd2fb97562895aed8fa (patch) | |
tree | cc695dce4603db22fe5bb0789467ae4d9481f084 /include | |
parent | aba356616386e6e573a34c6d64ed12443686e5c8 (diff) | |
download | op-kernel-dev-d08311dd6fd8444e39710dd2fb97562895aed8fa.zip op-kernel-dev-d08311dd6fd8444e39710dd2fb97562895aed8fa.tar.gz |
cgroupns: Add a limit on the number of cgroup namespaces
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 1 | ||||
-rw-r--r-- | include/linux/user_namespace.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 984f73b..1ed9281 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -621,6 +621,7 @@ struct cgroup_namespace { atomic_t count; struct ns_common ns; struct user_namespace *user_ns; + struct ucounts *ucounts; struct css_set *root_cset; }; diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index e1d6721..d067f0d 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h @@ -29,6 +29,7 @@ enum ucount_type { UCOUNT_PID_NAMESPACES, UCOUNT_UTS_NAMESPACES, UCOUNT_IPC_NAMESPACES, + UCOUNT_CGROUP_NAMESPACES, UCOUNT_COUNTS, }; |