net/nfc/rawsock.c: fix a permission check bug
[ Upstream commit 8ab78863 ] 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> Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I67091c7bac2eb728d870522d4cb8e8aea4c846ad
Loading
Please sign in to comment