]> git.baikalelectronics.ru Git - kernel.git/commit
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, 11 Apr 2021 23:42:00 +0000 (17:42 -0600)
commitc9b6e7da6b70f26372f8d00a06cf9d9e1825f655
tree8ac0386eea7f0f94709a3a6a71c981b2a4e23494
parentacfd0c2693a0956a42cc7323d893576b42a50cc9
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