2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Add profile names that are independent of attachment specification

Add the ability to specify the name and attachment of the profile
separately. It does not allow for the attachment specification to
begin with a variable however since variables in profile names is not
currently support this shouldn't be and issue.

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2010-12-20 11:49:42 -08:00
parent 49f27414e0
commit d4ca9f3ba0
5 changed files with 30 additions and 8 deletions

View File

@@ -736,6 +736,8 @@ void free_policy(struct codomain *cod)
free(cod->dfa);
if (cod->name)
free(cod->name);
if (cod->attachment)
free(cod->attachment);
if (cod->namespace)
free(cod->namespace);
if (cod->network_allowed)