android_kernel_motorola_sm6225/net/nfc
Jeimon ec72482564 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 11:54:56 +02:00
..
hci net: nfc: fix bounds checking bugs on "pipe" 2020-03-18 07:14:12 +01:00
nci NFC: nci: fix memory leak in nci_allocate_device 2021-06-03 08:38:02 +02:00
af_nfc.c
core.c
digital.h
digital_core.c
digital_dep.c net:nfc:digital: Fix a double free in digital_tg_recv_dep_req 2021-05-22 10:59:38 +02:00
digital_technology.c
Kconfig
llcp.h
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:24:07 +02:00
Makefile
netlink.c NFC: fix possible resource leak 2021-02-03 23:23:27 +01:00
nfc.h
rawsock.c net/nfc/rawsock.c: fix a permission check bug 2021-06-16 11:54:56 +02:00