Re: [apparmor] [patch] test new parameters of write_header()

2015-03-15 Thread Christian Boltz
Hello, Am Samstag, 14. März 2015 schrieb Christian Boltz: this patch changes the write_header tests so that the 'profile_keyword' and 'header_comment' parameters can be (and are) tested: - add a None for both to the existing tests - add some tests that come with the profile keyword and/or a

Re: [apparmor] [patch] extend and partially rewrite write_header()

2015-03-15 Thread Christian Boltz
Hello, Am Samstag, 14. März 2015 schrieb Christian Boltz: this patch extends and partially rewrites write_header() - add support for prof_data['header_comment'] (comment after '{') and prof_data['profile_keyword'] (to force the 'profile' keyword, even if it isn't needed) to

[apparmor] [patch] make set_profile_flags more strict

2015-03-15 Thread Christian Boltz
Hello, this patch makes set_profile_flags more strict: - raise AppArmorBug if newflags contains only whitespace - raise AppArmorBug if the file doesn't contain the specified profile or no profile at all The tests are adjusted to expect AppArmorBug instead of a silent failure. Also, some tests

[apparmor] [patch] replace RE_PROFILE_START

2015-03-15 Thread Christian Boltz
Hallo, this patch replaces RE_PROFILE_START with RE_PROFILE_START_2 and adjusts all code section that used RE_PROFILE_START_2. The only real change is that test_get_flags_invalid_01 and test_get_flags_invalid_02 now expect AppArmorException instead of AppArmorBug. This is another patch I

[apparmor] [patch] Finally implement attachment handling

2015-03-15 Thread Christian Boltz
Hello, and finally... *drumroll* This patch implements attachment handling - aa-logprof now works with profiles that have an attachment defined, instead of ignoring audit.log entries for those profiles. Changes: - parse_profile_start_line(): remove workaround that merged the attachment into

Re: [apparmor] [patch] Finally implement attachment handling

2015-03-15 Thread Christian Boltz
Hello, Am Sonntag, 15. März 2015 schrieb Christian Boltz: and finally... *drumroll* This patch implements attachment handling - aa-logprof now works with profiles that have an attachment defined, instead of ignoring audit.log entries for those profiles. Changes: -