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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user