summaryrefslogtreecommitdiff
path: root/mm/kasan
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2016-07-15 06:36:44 -0500
committerTejun Heo <tj@kernel.org>2016-07-15 08:04:27 -0400
commit726a4994b05ff5b6f83d64b5b43c3251217366ce (patch)
treebb968dbabc116836617716bed9f854261f6eb15f /mm/kasan
parenteedd0f4cbf5f3b81e82649832091e1d9d53f0709 (diff)
cgroupns: Only allow creation of hierarchies in the initial cgroup namespace
Unprivileged users can't use hierarchies if they create them as they do not have privilieges to the root directory. Which means the only thing a hiearchy created by an unprivileged user is good for is expanding the number of cgroup links in every css_set, which is a DOS attack. We could allow hierarchies to be created in namespaces in the initial user namespace. Unfortunately there is only a single namespace for the names of heirarchies, so that is likely to create more confusion than not. So do the simple thing and restrict hiearchy creation to the initial cgroup namespace. Cc: stable@vger.kernel.org Fixes: a79a908fd2b0 ("cgroup: introduce cgroup namespaces") Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/kasan')
0 files changed, 0 insertions, 0 deletions