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
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.h
rawsock.c net/nfc/rawsock.c: fix a permission check bug 2021-06-16 12:01:35 +02:00