]> www.infradead.org Git - users/dwmw2/linux.git/commit
apparmor: document first entry is in packed perms struct is reserved
authorJohn Johansen <john.johansen@canonical.com>
Sat, 9 Nov 2024 19:45:58 +0000 (11:45 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 27 Nov 2024 03:21:05 +0000 (19:21 -0800)
commita2081b78e212a4cc0e8cfb64ed26cb494d8af574
tree961c965bff81011c573c0b17105cc973f58366b6
parent7290f59231910ccba427d441a6e8b8c6f6112448
apparmor: document first entry is in packed perms struct is reserved

Add a comment to unpack_perm to document the first entry in the packed
perms struct is reserved, and make a non-functional change of unpacking
to a temporary stack variable named "reserved" to help suppor the
documentation of which value is reserved.

Suggested-by: Serge E. Hallyn <serge@hallyn.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy_unpack.c