[apparmor] [patch] Adjust type(x) == str checks in the rule classes for py2

2015-11-29 Thread Christian Boltz
Hallo, python 3 uses only the 'str' type, while python 2 also uses 'unicode'. This patch adds a type_is_str() function to common.py - depending on the python version, it checks for both. This helper function is used to keep the complexity outside of the rule classes. The rule classes get adjusted

[apparmor] [patch] Adjust test-aa.py for python2

2015-11-29 Thread Christian Boltz
Hello, $subject. This means: - expect unicode (instead of str) when reading from a file in py2 - convert keys() result to a set to avoid test failures because of dict_keys type After this change, all tests work for both py2 and py3. I propose this patch for trunk and 2.10. (Nothing to fix in

Re: [apparmor] [PATCH] parser: add basic support for parallel compiles and loads

2015-11-29 Thread Christian Boltz
Hello, Am Samstag, 28. November 2015 schrieb John Johansen: > On 11/28/2015 01:54 PM, Christian Boltz wrote: > > Am Samstag, 28. November 2015 schrieb John Johansen: ... > > So the parser will error out if a too big job number is given _and_ > > if there are enough profiles to load (otherwise the

[apparmor] [PATCH] utils: Don't check for existence of abstraction files in aa-easyprof

2015-11-29 Thread Tyler Hicks
aa-easyprof is used to generate profiles and the lack of an abstraction file during profile generation should not be an error condition. Leave the handling of the abstraction file for the parser. It will fail if the file does not exist when the profile is being compiled. https://launchpad.net/bug