mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
So far, aa-autodep "accidently" loaded the abstractions when parsing the existing profiles. Obviously, this only worked if there is at least one profile in the active or extra profile directory. Without any existing profiles, aa-autodep crashed with KeyError: '/tmp/apparmor.d/abstractions/base' Prevent this crash by explicitely loading the abstractions on start. Fixes: https://bugzilla.opensuse.org/show_bug.cgi?id=1178527#c1 [1] MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/682 (cherry picked from commit f6b3de71161f9acfa177e879017560000b7ffde8) Signed-off-by: John Johansen <john.johansen@canonical.com>
Known Bugs: Will allow multiple letters in the () due to translation/unicode issues with regexing the key. User input will probably bug out in a different locale.