]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: allow registering credentials
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Jan 2020 17:04:42 +0000 (10:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 Jan 2020 00:44:44 +0000 (17:44 -0700)
commita19602a88d7ec6bada024372dc0e99e171026a04
tree768fbf82c1c12cbc853327b82153420693c8a22f
parent1d69b1308fd4ff3904c91b9305d0542688fb76ed
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>
fs/io_uring.c
include/uapi/linux/io_uring.h