mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
When the variable was being expanded, it needed to be reevaluated to check if there was still unresolved variables. That allowed for a weird bug to happen: If the string contained a variable preceded by @, like in "user@@{uid}" and the variable was resolved to a case where { is used, like in @{uid}={[0-9],[1-9][0-9]}, then on the second pass, the parser would try to resolve the following variable @{[0-9],[1-9][0-9]}, which is incorrect behavior. Fix it by not including part of the string that was already resolved on the subsequent passes. Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
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