mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
update names output so that profile reload works correctly with hats and local profiles
This commit is contained in:
parent
c82947b8b7
commit
8c47189e19
1 changed files with 5 additions and 1 deletions
|
@ -542,7 +542,11 @@ static void __dump_policy_hatnames(const void *nodep, const VISIT value,
|
|||
if (value == preorder || value == endorder)
|
||||
return;
|
||||
|
||||
printf("%s^%s\n", __dump_policy_name->name, (*t)->sub_name);
|
||||
if (regex_type == AARE_DFA) {
|
||||
printf("%s//%s\n", __dump_policy_name->name, (*t)->name);
|
||||
} else {
|
||||
printf("%s^%s\n", __dump_policy_name->name, (*t)->name);
|
||||
}
|
||||
}
|
||||
|
||||
void dump_policy_hatnames(struct codomain *cod)
|
||||
|
|
Loading…
Add table
Reference in a new issue