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

Don't (un)load flattened hats on removal, as the kernel pulls them out

automatically (and the parser emits an error due to this).
This commit is contained in:
Steve Beattie
2010-03-09 01:38:12 -08:00
parent ebe59ca483
commit 69d59f80ed

View File

@@ -943,7 +943,7 @@ int sd_serialize_codomain(int option, struct codomain *cod)
if (kernel_load) close(fd);
if (cod->hat_table && regex_type == AARE_DFA) {
if (cod->hat_table && regex_type == AARE_DFA && option != OPTION_REMOVE) {
if (load_flattened_hats(cod) != 0)
return 0;
}