Commit b8a468e
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>1 parent 2014c95 commit b8a468e
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3791 | 3791 | | |
3792 | 3792 | | |
3793 | 3793 | | |
3794 | | - | |
| 3794 | + | |
3795 | 3795 | | |
3796 | 3796 | | |
3797 | 3797 | | |
3798 | 3798 | | |
3799 | 3799 | | |
3800 | | - | |
| 3800 | + | |
3801 | 3801 | | |
3802 | 3802 | | |
3803 | | - | |
| 3803 | + | |
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
3807 | | - | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
3808 | 3811 | | |
3809 | | - | |
| 3812 | + | |
3810 | 3813 | | |
3811 | 3814 | | |
3812 | 3815 | | |
3813 | 3816 | | |
3814 | 3817 | | |
3815 | | - | |
3816 | | - | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
3817 | 3823 | | |
3818 | 3824 | | |
3819 | 3825 | | |
| |||
0 commit comments