<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>The following patch:<br></div>- removes re import<br></div>- uses apparmor.re_match_include instead of the regex<br><br></div><br>=== modified file 'utils/apparmor/cleanprofile.py'<br>--- utils/apparmor/cleanprofile.py      2015-06-07 17:58:53 +0000<br>+++ utils/apparmor/cleanprofile.py      2015-06-07 18:05:50 +0000<br>@@ -11,8 +11,6 @@<br> #    GNU General Public License for more details.<br> #<br> # ----------------------------------------------------------------------<br>-import re<br>-<br> import apparmor.aa as apparmor<br> <br> class Prof(object):<br>@@ -92,7 +90,7 @@<br>                     if not same_profile:<br>                         deleted.append(entry)<br>                 continue<br>-            if re.search('#?\s*include', rule) or re.search('#?\s*include', entry):<br>+            if apparmor.re_match_include(rule) or apparmor.re_match_include(entry):<br>                 continue<br>             # Check if the rule implies entry<br>             if apparmor.matchliteral(rule, entry):<br><br><br>Thanks.<br><br></div>Regards,<br><br></div>Kshitij Gupta<br></div>