]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: Document that label must be last member in struct aa_profile
authorJohn Johansen <john.johansen@canonical.com>
Sun, 16 Feb 2025 11:40:52 +0000 (03:40 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 26 May 2025 03:15:01 +0000 (20:15 -0700)
commitb1f87be7280ff48794f0fe55c9ca6df9d87d62c5
treeb04fe5642eb17b1cc519a90c4c96cbc6e0d57718
parent4c0dc425fd613c5de0ca445f29d63150b52efc35
apparmor: Document that label must be last member in struct aa_profile

The label struct is variable length. While its use in struct aa_profile
is fixed length at 2 entries the variable length member needs to be
the last member in the structure.

The code already does this but the comment has it in the wrong location.
Also add a comment to ensure it stays at the end of the structure.

While we are at it, update the documentation for other profile members
as well.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/include/policy.h