apparmor: move fperm computation into policy_unpack
authorJohn Johansen <john.johansen@canonical.com>
Thu, 12 Nov 2020 18:07:25 +0000 (10:07 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 3 Oct 2022 21:49:02 +0000 (14:49 -0700)
commit754f209b811ac462e00ed0f79b48047c446f5c43
tree8f29dd899c33e8f776c268d430bcb999b16d4198
parentb5b57993504f91785fa70e002e5e494fb549726e
apparmor: move fperm computation into policy_unpack

fperm computation is only needed during policy_unpack so move the
code there to isolate it fromt the run time code.

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