kernel_optimize_test/net/nfc
Jeimon 1e5cab5020 net/nfc/rawsock.c: fix a permission check bug
[ Upstream commit 8ab78863e9eff11910e1ac8bcf478060c29b379e ]

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 12:01:35 +02:00
..
hci
nci NFC: nci: fix memory leak in nci_allocate_device 2021-05-28 13:17:43 +02:00
af_nfc.c
core.c net: nfc: kerneldoc fixes 2020-07-13 17:20:40 -07:00
digital_core.c
digital_dep.c net:nfc:digital: Fix a double free in digital_tg_recv_dep_req 2021-05-14 09:50:44 +02:00
digital_technology.c
digital.h
Kconfig
llcp_commands.c
llcp_core.c
llcp_sock.c nfc: fix NULL ptr dereference in llcp_sock_getname() after failed connect 2021-06-10 13:39:27 +02:00
llcp.h
Makefile
netlink.c NFC: fix possible resource leak 2021-02-03 23:28:51 +01:00
nfc.h
rawsock.c net/nfc/rawsock.c: fix a permission check bug 2021-06-16 12:01:35 +02:00