Fix the parser so it checks for the presence of the network feature in the compatibility interface. Previously it was assuming that if the compatibility interface was present that network rules where also present, this is not necessarily true and causes apparmor to break when only the compatibility patch is applied.
Signed-off-by: John Johansen <[email protected]> === modified file 'parser/parser_main.c' --- parser/parser_main.c 2012-04-11 23:03:21 +0000 +++ parser/parser_main.c 2012-06-30 06:31:05 +0000 @@ -873,6 +873,11 @@ //fprintf(stderr, "flags string: %s\n", flags_string); //fprintf(stderr, "changehat %d\n", flag_changehat_version); } + if (strstr(flags_string, "network")) + kernel_supports_network = 1; + else + kernel_supports_network = 0; + return; fail: -- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
