]> git.baikalelectronics.ru Git - kernel.git/commit
userns: limit the maximum depth of user_namespace->parent chain
authorOleg Nesterov <oleg@redhat.com>
Thu, 8 Aug 2013 16:55:32 +0000 (18:55 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Aug 2013 20:11:39 +0000 (13:11 -0700)
commit509e8722be7c25e4a1a9c9a4a68446f23e5546c5
tree3d9f64cf0c9d705b9f422d137c8067fa2d41f3c8
parent540426255f68565571d77c15f98b9d7e31bf5e0b
userns: limit the maximum depth of user_namespace->parent chain

Ensure that user_namespace->parent chain can't grow too much.
Currently we use the hardroded 32 as limit.

Reported-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/user_namespace.h
kernel/user_namespace.c