diff --git a/fs/io_uring.c b/fs/io_uring.c index a8c136a1cf4e..3cc1e59dd789 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -7783,7 +7783,7 @@ static int io_sq_offload_create(struct io_ring_ctx *ctx, struct io_sq_data *sqd; ret = -EPERM; - if (!capable(CAP_SYS_ADMIN)) + if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_NICE)) goto err; sqd = io_get_sq_data(p);