Re: [apparmor] [PATCH 1/2] utils: Fix infinite loop when converting an unrecognized mode string

2014-04-23 Thread Christian Boltz
Hello, Am Mittwoch, 23. April 2014 schrieb Tyler Hicks: > Bug: https://bugs.launchpad.net/bugs/1307665 > > When str_to_mode() was given a string containing unknown mode > characters, it entered an infinite loop. The case of the MODE_MAP_RE > regex string not matching the mode string was being ign

[apparmor] [PATCH 1/2] utils: Fix infinite loop when converting an unrecognized mode string

2014-04-23 Thread Tyler Hicks
Bug: https://bugs.launchpad.net/bugs/1307665 When str_to_mode() was given a string containing unknown mode characters, it entered an infinite loop. The case of the MODE_MAP_RE regex string not matching the mode string was being ignored. This patch makes it so that the loop breaks when MODE_MAP_RE