2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 22:35:35 +00:00

add parser subsystem reset functions

Signed-Off-By: Kees Cook <kees.cook@canonical.com>
This commit is contained in:
John Johansen
2009-07-24 07:34:11 +00:00
parent 0137b992b4
commit 627c044e4d
5 changed files with 25 additions and 11 deletions

View File

@@ -723,3 +723,10 @@ void free_policy(struct codomain *cod)
free(cod->dfa);
free(cod);
}
void free_policies(void)
{
if (policy_list)
tdestroy(policy_list, (__free_fn_t)&free_policy);
policy_list = NULL;
}