News › security

Linux 7.3 AppArmor Now Supports User-Space Compressed Policies for Faster Loads

By Zayden R., August 27, 2026

Linux 7.3 introduces user-space compressed policies for AppArmor, offering up to 30% faster load times. This enhancement is crucial for systems with large profiles and embedded devices with limited memory.

Linux 7.3 brings a notable enhancement to AppArmor, the kernel security module known for its per-program security controls. The new feature allows AppArmor to load policies that are compressed in user-space, offering a significant performance boost with up to 30% faster load times, particularly beneficial for systems with extensive profiles. Maxime Bélair from Canonical spearheaded this improvement, emphasizing its impact on systems with substantial AppArmor profiles and embedded Linux systems often constrained by limited memory.

Previously, the kernel module handled policy compression after loading, but the new approach allows for pre-compressed policies, potentially using higher compression levels than the kernel's default Zstd level. This change not only improves load times but also optimizes memory usage, a crucial factor for embedded systems.

In addition to the user-space compression feature, AppArmor in Linux 7.3 introduces an audit mode to suppress specific messages, refines network mediation with new patterns, and incorporates various code clean-ups and bug fixes. These enhancements mark a thoughtful progression in the tool's usability and performance, catering to the needs of developers and sysadmins alike.

The changes have been merged in time for the Linux 7.3 merge window, which concludes with the release of v7.3-rc1. Engineers working on systems with stringent security requirements or limited resources should consider updating to take advantage of these improvements.

Sources

Practice this on a real machine

The Linux Camp teaches these topics as hands-on labs on real virtual machines, verified as you type.