2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

let the parser add the change_hat rule

This commit is contained in:
John Johansen
2008-06-08 09:32:12 +00:00
parent 3b11aa9050
commit 0c95606e03

View File

@@ -362,15 +362,14 @@ static void __add_hat_rules_parent(const void *nodep, const VISIT value,
if ((*t)->local)
return;
/* later
entry = new_entry(strdup(CHANGEHAT_PATH), AA_MAY_WRITE);
entry = new_entry(NULL, strdup(CHANGEHAT_PATH), AA_MAY_WRITE, NULL);
if (!entry) {
PERROR(_("ERROR adding hat access rule for profile %s\n"),
(*t)->name);
exit(1);
}
add_entry_to_policy(*t, entry);
*/
twalk((*t)->hat_table, __add_hat_rules_parent);
}