net/nfc/rawsock.c: add CAP_NET_RAW check.
authorQingyu Li <ieatmuttonchuan@gmail.com>
Mon, 10 Aug 2020 01:51:00 +0000 (09:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 08:53:03 +0000 (10:53 +0200)
commitde7c8ab8cb412d21ffdac94a99ef2f29f7802fd1
treebd199e93e92a696f47b5dd22bf834697ea1302c3
parent8f2e6ffc2acc74da29c18c696d083ce1d8311027
net/nfc/rawsock.c: add CAP_NET_RAW check.

[ Upstream commit 26896f01467a28651f7a536143fe5ac8449d4041 ]

When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first.

Signed-off-by: Qingyu Li <ieatmuttonchuan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/nfc/rawsock.c