diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-01-28 10:04:42 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-28 17:44:44 -0700 |
commit | 071698e13ac6ba786dfa22349a7b62deb5a9464d (patch) | |
tree | 768fbf82c1c12cbc853327b82153420693c8a22f /include/uapi/linux/io_uring.h | |
parent | 24369c2e3bb06d8c4e71fd6ceaf4f8a01ae79b7c (diff) | |
download | linux-stable-071698e13ac6ba786dfa22349a7b62deb5a9464d.tar.gz linux-stable-071698e13ac6ba786dfa22349a7b62deb5a9464d.tar.bz2 linux-stable-071698e13ac6ba786dfa22349a7b62deb5a9464d.zip |
io_uring: allow registering credentials
If an application wants to use a ring with different kinds of
credentials, it can register them upfront. We don't lookup credentials,
the credentials of the task calling IORING_REGISTER_PERSONALITY is used.
An 'id' is returned for the application to use in subsequent personality
support.
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r-- | include/uapi/linux/io_uring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index e067b92af5ad..b4ccf31db2d1 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -211,6 +211,8 @@ struct io_uring_params { #define IORING_REGISTER_FILES_UPDATE 6 #define IORING_REGISTER_EVENTFD_ASYNC 7 #define IORING_REGISTER_PROBE 8 +#define IORING_REGISTER_PERSONALITY 9 +#define IORING_UNREGISTER_PERSONALITY 10 struct io_uring_files_update { __u32 offset; |