Jeimon 8ab78863e9 net/nfc/rawsock.c: fix a permission check bug
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>
2021-05-10 14:21:02 -07:00
..
2021-03-30 16:54:50 -07:00
2021-04-29 11:57:23 -07:00
2021-03-26 20:41:52 -07:00
2021-04-09 16:34:56 -07:00
2021-03-28 17:31:13 -07:00
2021-04-29 11:57:23 -07:00
2021-04-29 11:57:23 -07:00
2021-05-01 09:15:05 -07:00
2021-04-29 11:57:23 -07:00
2021-05-07 11:23:41 -07:00
2021-04-29 11:57:23 -07:00
2021-01-24 14:27:18 +01:00
2021-04-29 11:57:23 -07:00
2021-03-28 17:31:13 -07:00
2021-03-25 16:56:27 -07:00