diff --git a/libraries/libapparmor/src/features.c b/libraries/libapparmor/src/features.c index 7926750fa..71444e207 100644 --- a/libraries/libapparmor/src/features.c +++ b/libraries/libapparmor/src/features.c @@ -375,6 +375,10 @@ static bool walk_one(const char **str, const struct component *component, i = 0; cur++; + + /* Partial match, continue to search */ + if (i == component->len && !isbrace_space_or_nul(*cur)) + i = 0; } /* Return false if a full match was not found */