projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
418baf2
)
io_uring: allow SQPOLL with CAP_SYS_NICE privileges
author
Jens Axboe
<axboe@kernel.dk>
Wed, 2 Sep 2020 19:28:09 +0000
(13:28 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 23 Nov 2020 16:15:15 +0000
(09:15 -0700)
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
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index a8c136a1cf4e628306d032d4ddfc467c130043e8..3cc1e59dd789cabde49c0ea66b39033cdb026804 100644
(file)
--- 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);