ipv6: enable net.ipv6.route.max_size sysctl in network namespace
authorAlexander Kuznetsov <wwfq@yandex-team.ru>
Wed, 27 Oct 2021 08:00:08 +0000 (11:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 11:53:39 +0000 (12:53 +0100)
commit06e6c88fba2413a8408f321b0b3a5b0954e76436
tree735093c91d980821829a18ec625a443519064f45
parente0b4f1cd36bf43babb444a8417d7cb7740979646
ipv6: enable net.ipv6.route.max_size sysctl in network namespace

We want to increase route cache size in network namespace
created with user namespace. Currently ipv6 route settings
are disabled for non-initial network namespaces.
We can allow this sysctl and it will be safe since
commit <6126891c6d4f> because route cache account to kmem,
that is why users from user namespace can not DOS system.

Signed-off-by: Alexander Kuznetsov <wwfq@yandex-team.ru>
Acked-by: Dmitry Yakunin <zeil@yandex-team.ru>
Acked-by: Dmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c