]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: refactor/cleanup cred helper fns.
authorJohn Johansen <john.johansen@canonical.com>
Sat, 8 Nov 2025 11:00:56 +0000 (03:00 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 29 Jan 2026 09:27:54 +0000 (01:27 -0800)
commitacf2a94ac4734962742398bed0cde156baf48244
tree471378c72ec2099bebd2439a2f35cfd2aa2e0490
parent1301b956190590ef7f64b321fd27c59907d9c271
apparmor: refactor/cleanup cred helper fns.

aa_cred_raw_label() and cred_label() now do the same things so
consolidate to cred_label()

Document the crit section use and constraints better and refactor
__begin_current_label_crit_section() into a base fn
__begin_cred_crit_section() and a wrapper that calls the base with
current cred.

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