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)
commit071698e13ac6ba786dfa22349a7b62deb5a9464d
tree768fbf82c1c12cbc853327b82153420693c8a22f
parent24369c2e3bb06d8c4e71fd6ceaf4f8a01ae79b7c
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