mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
The calling function and the merge() macro both make use of a variable named "i" but this causes problems when merging. The aa_policy_cache.sh test script experiences "bad file descriptor" failures due to the merged list containing invalid fd values (-1). Fix this by renaming merge()'s index variables from i and j to y and z to hopefully prevent future overlap. The better fix here would be to convert merge() to a function but that's a more intrusive change and I don't have an easy way to test the overlay feature. PR: https://gitlab.com/apparmor/apparmor/merge_requests/348 (cherry picked from commit d7ac07afc48bdc61892e4227949ee8e24c95ff1e) Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
What little documentation exists is in src/aalogparse.h. Please file bugs using https://bugs.launchpad.net/apparmor/+filebug