Commit aff426f3 authored by John Johansen's avatar John Johansen
Browse files

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 2e12c5f0 ("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: 2e12c5f0 ("apparmor: add additional flags to extended permission.")
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent b1f87be7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment