mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +00:00
update names output so that profile reload works correctly with hats and local profiles
This commit is contained in:
@@ -542,7 +542,11 @@ static void __dump_policy_hatnames(const void *nodep, const VISIT value,
|
|||||||
if (value == preorder || value == endorder)
|
if (value == preorder || value == endorder)
|
||||||
return;
|
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)
|
void dump_policy_hatnames(struct codomain *cod)
|
||||||
|
Reference in New Issue
Block a user