apparmor: convert xmatch lookup to use accept as an index
authorJohn Johansen <john.johansen@canonical.com>
Sat, 14 Nov 2020 07:36:09 +0000 (23:36 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 3 Oct 2022 21:49:03 +0000 (14:49 -0700)
commit2d63dd43ae334ec6f5374d37bb06c4cc57621b3c
treebf5ae11e7fe1defc13ee08b121b80e2bba377bce
parent7572fea31e3e5c4c19154ccc064eb1f83dfe1333
apparmor: convert xmatch lookup to use accept as an index

Remap xmatch dfa accept table from embedded perms to an index and then
move xmatch lookup to use accept entry to index into the xmatch table.

This is step towards unifying permission lookup and reducing the
size of permissions tables.

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