2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00
John Johansen f86fda02f5 parser: fix 16 bit state limitation
The hfa stores next/check transitions in 16 bit fields to reduce memory
usage. However this means the state machine can on contain 2^16
states.

Allow the next/check tables to be 32 bit. This theoretically could allow
for 2^32 states however the base table uses the top 8 bits as flags
giving us only 2^24 bits to index into the next/check tables. With
most states having at least 1 transition this effectively caps the
number of states at 2^24.

To obtain 2^32 possible states a flags table needs to be added. Add
a skeleton around supporting a flags table, so we can note the remaining
work that needs to be done. This patch will only allow for 2^24 states.

Bug: https://gitlab.com/apparmor/apparmor/-/issues/419

Signed-off-by: John Johansen <john.johansen@canonical.com>
2024-08-14 17:01:30 -07:00
..
2023-07-10 20:04:53 -07:00
2024-07-17 15:07:06 -03:00
2024-03-29 10:52:25 +01:00
2024-03-29 10:57:33 +01:00
2024-08-14 15:47:13 -07:00
2023-03-29 10:45:44 -07:00
2021-12-05 18:16:53 +01:00
2024-08-14 15:47:13 -07:00
2024-08-14 17:01:30 -07:00
2024-08-14 15:47:13 -07:00
2020-10-11 12:22:23 +02:00
2024-08-14 15:47:13 -07:00
2024-08-14 15:47:13 -07:00
2024-08-14 15:47:13 -07:00
2013-09-27 16:16:37 -07:00

The apparmor_parser allows you to add, replace, and remove AppArmor
policy through the use of command line options. The default is to add.
`apparmor_parser --help` shows what the command line options are.

You can also find more information at https://wiki.apparmor.net

-- The AppArmor development team