aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZygmunt Krynicki <me@zygoon.pl>2026-05-04 08:32:37 +0200
committerJohn Johansen <john.johansen@canonical.com>2026-06-13 20:14:08 -0700
commit45cf568241048e560a81aa2053f06a62069f5640 (patch)
treeeab90bf291c62f6d74cdae78b2a2d60facf7f98c /tools/perf/scripts/python
parentb7a2b49bba4e5994a476c49d662b796818079e5e (diff)
apparmor: fail policy unpack on accept2 allocation failure
unpack_pdb() may need to allocate a missing ACCEPT2 table for older policy data. If that allocation failed, it set an error message but jumped to the success path, returning a policydb with the required table missing. Return -ENOMEM through the normal failure path when the ACCEPT2 allocation fails. Remove the now-unused out label. Fixes: 2e12c5f06017 ("apparmor: add additional flags to extended permission.") Reviewed-by: Ryan Lee <ryan.lee@canonical.com> Signed-off-by: Zygmunt Krynicki <me@zygoon.pl> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions