AppArmor Adds IO_uring Mediation & Some Performance Optimizations

Written by Michael Larabel in Linux Security on 3 November 2023 at 08:33 AM EDT. 7 Comments
LINUX SECURITY
The AppArmor Linux security system has picked up a few improvements and new features with the in-development Linux 6.7 kernel.

John Johansen of Canonical sent out today the AppArmor updates for the new kernel and summed it up as:
"This PR adds initial support for mediating io_uring and userns creation. Adds a new restriction that tightens the use of
change_profile, and a couple of optimizations to reduce performance bottle necks that have been found when retrieving the current task's secid and allocating work buffers.

The majority of the patch set continues cleaning up and simplifying the code (fixing comments, removing now dead functions, and macros etc). Finally there are 4 bug fixes, with the regression fix having had a couple months of testing."

Performance optimizations are always welcome especially in areas like AppArmor overhead. The IO_uring mediation is interesting although with Linux 6.7 is limited to sqpoll and override_creds interfaces.

Historically IO_uring has been the source of some security vulnerabilities while since Linux 6.6 it's been made easier to disable IO_uring system wide. The IO_uring security woes have mostly been with older kernels but in any event for those using AppArmor there is now IO_uring mediation available for those interested. This IO_uring support was added by Canonical engineers.

AppArmor logo


More details on the IO_uring updates for Linux 6.7 via the pull request.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week