Re: [PATCH] nfc: enforce CAP_NET_RAW for raw sockets When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first.

2020-08-06 Thread Jakub Kicinski
On Thu, 6 Aug 2020 10:28:08 +0800 Qingyu Li wrote: Commit message is required. Perhaps shorten the subject and put more info here. > Signed-off-by: Qingyu Li > --- > net/nfc/rawsock.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/net/nfc/rawsock.c

[PATCH] nfc: enforce CAP_NET_RAW for raw sockets When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first.

2020-08-05 Thread Qingyu Li
Signed-off-by: Qingyu Li --- net/nfc/rawsock.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c index ba5ffd3badd3..c1302b689a98 100644 --- a/net/nfc/rawsock.c +++ b/net/nfc/rawsock.c @@ -332,8 +332,11 @@ static int