diff options
author | Matteo Rizzo <matteorizzo@google.com> | 2023-08-21 17:15:52 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-09-05 08:34:07 -0600 |
commit | 76d3ccecfa186af3120e206d62f03db1a94a535f (patch) | |
tree | 8b3760ca153fe6e034e0caaaf7558055ad88afa3 /lib/crypto/mpi/mpi-mod.c | |
parent | 32f5dea040ee6e3cc30ac52d23f1674fd5110d03 (diff) |
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 'lib/crypto/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions