mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-23 02:27:12 +00:00
Match Flags convert output to hex but don't restore after outputting the flag resulting in following numbers being hex encoded. This results in dumps that can be confusing eg. rule: \d2 -> \x2 priority=1001 (0x4/0)< 0x4> rule: \d7 -> \a priority=3e9 (0x4/0)< 0x4> rule: \d10 -> \n priority=3e9 (0x4/0)< 0x4> rule: \d9 -> \t priority=3e9 (0x4/0)< 0x4> rule: \d14 -> \xe priority=1001 (0x4/0)< 0x4> where priority=3e9 is the hex encoded priority 1001. Signed-off-by: John Johansen <john.johansen@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1419 Approved-by: Maxime Bélair <maxime.belair@canonical.com> Approved-by: John Johansen <john@jjmx.net> Merged-by: John Johansen <john@jjmx.net>
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