]> git.baikalelectronics.ru Git - kernel.git/commit
security: Remove rtnl_lock() in selinux_xfrm_notify_policyload()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 29 Mar 2018 16:20:56 +0000 (19:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 17:47:53 +0000 (13:47 -0400)
commita3cd8c93aea0b5ff005a6a232b2a8ebe1aaef878
treec29d81b825a786a6ad8bb54f807e58729127d753
parentb880d1251ae05a56d8c6f701e25a75cee7b79be8
security: Remove rtnl_lock() in selinux_xfrm_notify_policyload()

rt_genid_bump_all() consists of ipv4 and ipv6 part.
ipv4 part is incrementing of net::ipv4::rt_genid,
and I see many places, where it's read without rtnl_lock().

ipv6 part calls __fib6_clean_all(), and it's also
called without rtnl_lock() in other places.

So, rtnl_lock() here was used to iterate net_namespace_list only,
and we can remove it.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
security/selinux/include/xfrm.h