diff options
author | Matteo Rizzo <[email protected]> | 2023-08-21 17:15:52 -0400 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-09-05 08:34:07 -0600 |
commit | 76d3ccecfa186af3120e206d62f03db1a94a535f (patch) | |
tree | 8b3760ca153fe6e034e0caaaf7558055ad88afa3 /net/unix/sysctl_net_unix.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 <[email protected]>
[JEM: modified to add io_uring_group]
Signed-off-by: Jeff Moyer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions