]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
apparmor: free rawdata as soon as possible
authorJohn Johansen <john.johansen@canonical.com>
Sun, 1 Mar 2026 20:29:06 +0000 (12:29 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 14 Jun 2026 03:14:07 +0000 (20:14 -0700)
commitb9b864fc72367ffdbe79b7952518573e9d209844
treea62f992acebd7ee467b253727790220ff866f781
parent32e92764d6f8d251c1bca62be33793287b453a81
apparmor: free rawdata as soon as possible

profiles can be pinned by file and other references, and can live long
after they have been replaced/removed. The rawdata however is no longer
needed, and can be freed earlier than the rest of the profile.

Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy.c