]> www.infradead.org Git - users/jedix/linux-maple.git/commit
apparmor: add support for 2^24 states to the dfa state machine.
authorJohn Johansen <john.johansen@canonical.com>
Sat, 24 Aug 2024 04:40:47 +0000 (21:40 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 27 Nov 2024 03:21:05 +0000 (19:21 -0800)
commit9208c05f9fdfd927ea160b97dfef3c379049fff2
tree257a4787f8a45fee867d9e697590bf7c27434c2c
parentdb93ca15e5aefe868ef095ee830a205f70f38b6e
apparmor: add support for 2^24 states to the dfa state machine.

Currently the dfa state machine is limited by its default, next, and
check tables using u16. Allow loading of u32 tables, and if u16 tables
are loaded map them to u32.

The number of states allowed does not increase to 2^32 because the
base table uses the top 8 bits of its u32 for flags. Moving the flags
into a separate table allowing a full 2^32 bit range wil be done in
a separate patch.

Link: https://gitlab.com/apparmor/apparmor/-/issues/419
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c
security/apparmor/include/match.h
security/apparmor/match.c