diff options
author | Matteo Rizzo <matteorizzo@google.com> | 2023-09-13 08:11:53 +0000 |
---|---|---|
committer | Matteo Rizzo <matteorizzo@google.com> | 2023-09-13 08:11:53 +0000 |
commit | f26bc4261d9cea77aa826e6e1f2a2b8bf532c3b1 (patch) | |
tree | 06e352b0006224b8405bafb4eb7f8565f795b1f7 | |
parent | 091e0931b3e54759b7e2ae66c2850a79768c8c23 (diff) | |
download | liburing-f26bc4261d9cea77aa826e6e1f2a2b8bf532c3b1.tar.gz |
man/io_uring_setup.2: add new reason for returning EPERM.
The new io_uring_disabled sysctl can make io_uring_setup return -EPERM
if it's set to disable io_uring, document this in the man pages.
Link: https://lore.kernel.org/all/x49y1i42j1z.fsf@segfault.boston.devel.redhat.com/
Signed-off-by: Matteo Rizzo <matteorizzo@google.com>
-rw-r--r-- | man/io_uring_setup.2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man/io_uring_setup.2 b/man/io_uring_setup.2 index 11438290..9710aa51 100644 --- a/man/io_uring_setup.2 +++ b/man/io_uring_setup.2 @@ -691,6 +691,13 @@ Insufficient kernel resources are available. .B IORING_SETUP_SQPOLL was specified, but the effective user ID of the caller did not have sufficient privileges. +.TP +.B EPERM +.I /proc/sys/kernel/io_uring_disabled +has the value 2, or it has the value 1 and the calling process does not hold the +.B CAP_SYS_ADMIN +capability or is not a member of +.I /proc/sys/kernel/io_uring_group. .SH SEE ALSO .BR io_uring_register (2), .BR io_uring_enter (2) |