Commit b8a468e0 authored by Hamza Mahfooz's avatar Hamza Mahfooz Committed by Paul Moore
Browse files

io_uring: refactor io_uring_allowed()



Have io_uring_allowed() return an error code directly instead of
true/false. This is needed for follow-up work to guard io_uring_setup()
with LSM.

Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarHamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Acked-by: default avatarJens Axboe <axboe@kernel.dk>
[PM: goto-to-return conversion as discussed on-list]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 2014c95a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment