2 ms·
> io_uring just reduces the number of system calls required - but since it works on file descriptors, you must have already acquired the fd in the correct mode.
by yencabulator 2y ago
> io_uring just reduces the number of system calls required - but since it works on file descriptors, you must have already acquired the fd in the correct mode.
With the caveat that you can open files through io_uring requests, too: https://www.man7.org/linux/man-pages/man3/io_uring_prep_open.3.html https://www.man7.org/linux/man-pages/man3/io_uring_prep_open...
And they might not have traditional FDs: https://lwn.net/Articles/863071/ https://lwn.net/Articles/863071/
But yes, it's bad security architecture (fail-open), not updated fast enough.
The real answer is probably something more like Landlock, where it's the kernel's job to understand syscall semantics.
- PeterWhittaker 2y agoTrue, but even those calls require appropriate permissions, and will fail if the program lacks said perms. (Just to emphasize the point that the original article doesn't provide a means of privilege escalation, nor exploit a vulnerability.)