io_uring: allow SQPOLL with CAP_SYS_NICE privileges
authorJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 19:28:09 +0000 (13:28 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 5 Sep 2020 22:07:35 +0000 (16:07 -0600)
commit03a54c18518d196693217aa9f683369eacb01daf
treee13641cf39dd56578ce4e578cfa0fd9c2ecf1324
parent90564247cb0df6c72e9b0062c5e47d736bd728ae
io_uring: allow SQPOLL with CAP_SYS_NICE privileges

CAP_SYS_ADMIN is too restrictive for a lot of uses cases, allow
CAP_SYS_NICE based on the premise that such users are already allowed
to raise the priority of tasks.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c