diff options
author | 2025-03-18 23:06:41 +0100 | |
---|---|---|
committer | 2025-07-15 22:39:43 -0700 | |
commit | 87cc7b00114f6f751d25f6a5f05128dc27ef64db (patch) | |
tree | c8acf0039c846af5129c5e09977785033304ebb6 /tools/perf/scripts/python | |
parent | Revert "apparmor: use SHA-256 library API instead of crypto_shash API" (diff) | |
download | wireguard-linux-87cc7b00114f6f751d25f6a5f05128dc27ef64db.tar.xz wireguard-linux-87cc7b00114f6f751d25f6a5f05128dc27ef64db.zip |
apparmor: make __begin_current_label_crit_section() indicate whether put is needed
Same as aa_get_newest_cred_label_condref().
This avoids a bunch of work overall and allows the compiler to note when no
clean up is necessary, allowing for tail calls.
This in particular happens in apparmor_file_permission(), which manages to
tail call aa_file_perm() 105 bytes in (vs a regular call 112 bytes in
followed by branches to figure out if clean up is needed).
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions