(In reply to Christian Boltz from comment #14) > ... > > Now for the aa_logprof test failure: > > ... > > (I have no idea what $self->aa_tmp_prof_clean does (github link welcome) - > but it does for sure not unload the "/usr/sbin/nscd" profile.) aa_tmp_prof_clean does nothing but remove /tmp/apparmor.d but in pre_run_hook, which run before every single cases, apparmor and auditd will be restarted. See lib/apparmortest.pm for details > > To fix this, run the following at the end of the aa_autodep and aa_genprof > tests: > echo '/usr/sbin/nscd {}' | apparmor_parser -R > to unload the "/usr/sbin/nscd" profile. > Expected result: no output, $? == 0 > > > Does this help to make the tests green? ;-) Thanks for the tips. I wasn't considered the loaded profile will implicate the profile generated in another profile directory by aa-genprof. I'm going to check.