2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Update aliases so that they apply properly to profile names.

Instead of updating the profile name, allow a profile to have multiple
alternate names.  Aliases are now added as alternate names and matched
through the xmatch dfa.
This commit is contained in:
John Johansen
2010-02-12 13:49:58 -08:00
parent eafddd3cea
commit ee00b0cea2
3 changed files with 27 additions and 3 deletions

View File

@@ -77,9 +77,15 @@ struct aa_rlimits {
rlim_t limits[RLIMIT_NLIMITS];
};
struct alt_name {
char *name;
struct alt_name *next;
};
struct codomain {
char *namespace;
char *name; /* codomain name */
struct alt_name *altnames;
void *xmatch;
size_t xmatch_size;
int xmatch_len;