Files
linux/net
Jeimon d6a21a3fb0 net/nfc/rawsock.c: fix a permission check bug
[ Upstream commit 8ab78863e9 ]

The function rawsock_create() calls a privileged function sk_alloc(), which requires a ns-aware check to check net->user_ns, i.e., ns_capable(). However, the original code checks the init_user_ns using capable(). So we replace the capable() with ns_capable().

Signed-off-by: Jeimon <jjjinmeng.zhou@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-16 11:36:32 +02:00
..
2015-03-02 16:43:41 -05:00
2019-12-05 15:35:12 +01:00
2021-06-03 08:23:32 +02:00
2020-07-22 09:10:48 +02:00
2019-03-23 13:19:44 +01:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00