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>
Tue, 28 Jan 2020 19:27:28 +0000 (12:27 -0700)
commitf636a8b59574ae2784f8f2828564d80aac0daf6a
treec032ada0663a7532fac429c783870b3b35dc1e5f
parent6796f83cfb86610670a583bd19177fbbaa28c7ca
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h