aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2016-08-08 14:08:36 -0500
committerEric W. Biederman <ebiederm@xmission.com>2016-08-08 14:42:01 -0500
commitf333c700c6100b53050980986be922bb21466e29 (patch)
tree60554e8ad7eeda0cac508cade356a1358171df22 /include
parentuserns: Generalize the user namespace count into ucount (diff)
downloadwireguard-linux-f333c700c6100b53050980986be922bb21466e29.tar.xz
wireguard-linux-f333c700c6100b53050980986be922bb21466e29.zip
pidns: Add a limit on the number of pid 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/pid_namespace.h1
-rw-r--r--include/linux/user_namespace.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h
index 918b117a7cd3..34cce96741bc 100644
--- a/include/linux/pid_namespace.h
+++ b/include/linux/pid_namespace.h
@@ -40,6 +40,7 @@ struct pid_namespace {
struct fs_pin *bacct;
#endif
struct user_namespace *user_ns;
+ struct ucounts *ucounts;
struct work_struct proc_work;
kgid_t pid_gid;
int hide_pid;
diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h
index 9b676ead35c3..9ee94827728d 100644
--- a/include/linux/user_namespace.h
+++ b/include/linux/user_namespace.h
@@ -26,6 +26,7 @@ struct ucounts;
enum ucount_type {
UCOUNT_USER_NAMESPACES,
+ UCOUNT_PID_NAMESPACES,
UCOUNT_COUNTS,
};