2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Turn on diff-encoding if the kernel supports it

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
John Johansen
2014-04-23 11:05:58 -07:00
parent 2097398232
commit 727489fffd
3 changed files with 9 additions and 1 deletions

View File

@@ -306,6 +306,7 @@ static int handle_flag_table(optflag_table_t *table, const char *optarg,
return 1;
}
}
return 0;
}
@@ -847,6 +848,11 @@ static void set_supported_features(void) {
kernel_supports_mount = 1;
if (strstr(features_string, "dbus"))
kernel_supports_dbus = 1;
if (strstr(features_string, "diff_encode"))
kernel_supports_diff_encode = 1;
else if (dfaflags & DFA_CONTROL_DIFF_ENCODE)
/* clear diff_encode because it is not supported */
dfaflags &= ~DFA_CONTROL_DIFF_ENCODE;
}
int process_binary(int option, const char *profilename)