2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

parser: add error=EXX flag support

Add a flag that allows setting the error code AppArmor will send when
an operation is denied. This should not be used normally.

Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
Georgia Garcia
2024-04-15 16:32:16 -03:00
parent 678d6294d7
commit aee0492491
21 changed files with 167 additions and 2 deletions

View File

@@ -960,6 +960,9 @@ void set_supported_features()
features_supports_flag_signal = features_intersect(kernel_features,
policy_features,
"policy/profile/kill.signal");
features_supports_flag_error = features_intersect(kernel_features,
policy_features,
"policy/profile/error");
}
static bool do_print_cache_dir(aa_features *features, int dirfd, const char *path)