mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +00:00
let the parser add the change_hat rule
This commit is contained in:
@@ -362,15 +362,14 @@ static void __add_hat_rules_parent(const void *nodep, const VISIT value,
|
|||||||
if ((*t)->local)
|
if ((*t)->local)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* later
|
entry = new_entry(NULL, strdup(CHANGEHAT_PATH), AA_MAY_WRITE, NULL);
|
||||||
entry = new_entry(strdup(CHANGEHAT_PATH), AA_MAY_WRITE);
|
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
PERROR(_("ERROR adding hat access rule for profile %s\n"),
|
PERROR(_("ERROR adding hat access rule for profile %s\n"),
|
||||||
(*t)->name);
|
(*t)->name);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
add_entry_to_policy(*t, entry);
|
add_entry_to_policy(*t, entry);
|
||||||
*/
|
|
||||||
twalk((*t)->hat_table, __add_hat_rules_parent);
|
twalk((*t)->hat_table, __add_hat_rules_parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user