summaryrefslogtreecommitdiff
path: root/io_uring/io-wq.c
diff options
context:
space:
mode:
authorMatteo Rizzo <matteorizzo@google.com>2023-08-22 00:15:52 +0300
committerJens Axboe <axboe@kernel.dk>2023-09-05 17:34:07 +0300
commit76d3ccecfa186af3120e206d62f03db1a94a535f (patch)
tree8b3760ca153fe6e034e0caaaf7558055ad88afa3 /io_uring/io-wq.c
parent32f5dea040ee6e3cc30ac52d23f1674fd5110d03 (diff)
downloadlinux-76d3ccecfa186af3120e206d62f03db1a94a535f.tar.xz
io_uring: add a sysctl to disable io_uring system-wide
Introduce a new sysctl (io_uring_disabled) which can be either 0, 1, or 2. When 0 (the default), all processes are allowed to create io_uring instances, which is the current behavior. When 1, io_uring creation is disabled (io_uring_setup() will fail with -EPERM) for unprivileged processes not in the kernel.io_uring_group group. When 2, calls to io_uring_setup() fail with -EPERM regardless of privilege. Signed-off-by: Matteo Rizzo <matteorizzo@google.com> [JEM: modified to add io_uring_group] Signed-off-by: Jeff Moyer <jmoyer@redhat.com> Link: https://lore.kernel.org/r/x49y1i42j1z.fsf@segfault.boston.devel.redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io-wq.c')
0 files changed, 0 insertions, 0 deletions