]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: refactor io_uring_allowed()
authorHamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Mon, 27 Jan 2025 15:57:17 +0000 (10:57 -0500)
committerPaul Moore <paul@paul-moore.com>
Fri, 7 Feb 2025 22:17:49 +0000 (17:17 -0500)
commitb8a468e0b0604a10e72ab7f55af0f931aac1d477
tree84862cc57b4e3db9a2337f7e381c0df21e55ffab
parent2014c95afecee3e76ca4a56956a936e23283f05b
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: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
[PM: goto-to-return conversion as discussed on-list]
Signed-off-by: Paul Moore <paul@paul-moore.com>
io_uring/io_uring.c