Files
linux/security/apparmor/include
John Johansen f86ee868fd apparmor: add a conditional version of get_newest_label
get_newest_label() will always return a refcount, on the profile it
returns. However there are cases where we only need the refcount
if the label is stale and get_newest_label() will return a different
label.

Optimize this by making the get/put happen conditionally, by keeping
a flag indicating if the get was performed and a put is needed.

Signed-off-by: John Johansen <john.johansen@canonical.com>
2026-06-13 20:14:06 -07:00
..
2023-11-12 22:54:42 -05:00