mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
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 <john.johansen@canonical.com> Acked-by: Kees Cook <kees@ubuntu.com>
This commit is contained in:
parent
c1c1b229c1
commit
107b5113bd
1 changed files with 5 additions and 0 deletions
|
@ -873,6 +873,11 @@ static void get_flags_string(char **flags, char *flags_file) {
|
|||
//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:
|
||||
|
|
Loading…
Add table
Reference in a new issue