Page MenuHomeFreeBSD

linux: io_uring implemented as EPERM error.
Needs ReviewPublic

Authored by philmb3487_proton.me on Wed, May 27, 11:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 8:22 AM
Unknown Object (File)
Wed, Jun 10, 9:32 PM
Unknown Object (File)
Thu, Jun 4, 6:09 PM
Unknown Object (File)
Thu, Jun 4, 6:08 PM
Unknown Object (File)
Thu, Jun 4, 8:52 AM
Unknown Object (File)
Wed, Jun 3, 7:01 PM
Unknown Object (File)
Tue, Jun 2, 8:43 PM
Unknown Object (File)
Tue, Jun 2, 8:24 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Some programs[1] try to use io_uring, which is considered
by many[2] to be a security risk. Therefore I implemented it
as returning EPERM, as is done by the linux kernel in case
of a security restriction.

The advantage of this patch is it reduces noisy output over
the 'not implemented' situation.

1: in my case: cmake.
2: Google, OpenSUSE, Docker, RockyLinux at the very least

had discussions about disabling io_uring.

Signed-off-by: Philippe Michaud-Boudreault <philmb3487@proton.me>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73492
Build 70375: arc lint + arc unit