AppArmor 2.7 is _very_ old - especially given the fact that the tools were rewritten in python for 2.9.
I just checked the perl code (which was used in 2.8.x and older) - it _sets_ the flags (instead of adding or removing them), so it's not surprising that attach_disconnected gets lost. (This is one of the fixes that went into the 2.9 during the rewrite to python.)
If someone is interested to fix this - the code is in Immunix/AppArmor.pm, sub complain() and sub enforce(), which both call setprofileflags().
AppArmor 2.7 is _very_ old - especially given the fact that the tools were rewritten in python for 2.9.
I just checked the perl code (which was used in 2.8.x and older) - it _sets_ the flags (instead of adding or removing them), so it's not surprising that attach_disconnected gets lost. (This is one of the fixes that went into the 2.9 during the rewrite to python.)
If someone is interested to fix this - the code is in Immunix/ AppArmor. pm, sub complain() and sub enforce(), which both call setprofileflags().