pidns: Add a limit on the number of pid namespaces

Acked-by: Kees Cook <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
This commit is contained in:
Eric W. Biederman 2016-08-08 14:08:36 -05:00
commit f333c700c6
4 changed files with 24 additions and 4 deletions

View file

@ -68,6 +68,7 @@ static int int_max = INT_MAX;
}
static struct ctl_table user_table[] = {
UCOUNT_ENTRY("max_user_namespaces"),
UCOUNT_ENTRY("max_pid_namespaces"),
{ }
};
#endif /* CONFIG_SYSCTL */