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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user