io_uring: allow SQPOLL without CAP_SYS_ADMIN or CAP_SYS_NICE
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Mar 2021 16:21:35 +0000 (10:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:27:39 +0000 (15:27 -0600)
commitd3125db8c48414b10c97a4da6b968590ea03bdb8
tree6c4312e99afcfa2f64b05d255cc0cc00a2cc3901
parent6c40d316ff3a9e583a43f014c2e6d054e2f4bb7d
io_uring: allow SQPOLL without CAP_SYS_ADMIN or CAP_SYS_NICE

Now that we have any worker being attached to the original task as
threads, accounting of CPU time is directly attributed to the original
task as well. This means that we no longer have to restrict SQPOLL to
needing elevated privileges, as it's really no different from just having
the task spawn a busy looping thread in userspace.

Reported-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c