aboutsummaryrefslogtreecommitdiffstats
path: root/security/apparmor/af_unix.c
diff options
context:
space:
mode:
authorJohn Johansen <[email protected]>2025-05-24 04:04:51 +0000
committerJohn Johansen <[email protected]>2025-07-16 05:39:07 +0000
commitaff426f35966e6e77ecfe065984344a7d834eaa9 (patch)
tree612b60bd88d3772a2a78f03d61c518dd946db98a /security/apparmor/af_unix.c
parentapparmor: Document that label must be last member in struct aa_profile (diff)
downloadkernel-aff426f35966e6e77ecfe065984344a7d834eaa9.tar.gz
kernel-aff426f35966e6e77ecfe065984344a7d834eaa9.zip
apparmor: mitigate parser generating large xtables
Some versions of the parser are generating an xtable transition per state in the state machine, even when the state machine isn't using the transition table. The parser bug is triggered by commit 2e12c5f06017 ("apparmor: add additional flags to extended permission.") In addition to fixing this in userspace, mitigate this in the kernel as part of the policy verification checks by detecting this situation and adjusting to what is actually used, or if not used at all freeing it, so we are not wasting unneeded memory on policy. Fixes: 2e12c5f06017 ("apparmor: add additional flags to extended permission.") Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'security/apparmor/af_unix.c')
0 files changed, 0 insertions, 0 deletions