2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 14:55:10 +00:00

Add the ability to specify link subset test on a link pair, and

fix a bug where link pairs could get improperly merged.
This commit is contained in:
John Johansen
2008-03-13 16:49:10 +00:00
parent d2eeef8291
commit 36ad7de2c5
6 changed files with 43 additions and 11 deletions

View File

@@ -515,6 +515,8 @@ static int process_dfa_entry(aare_ruleset_t *dfarules, struct cod_entry *entry)
ptype = convert_aaregex_to_pcre(entry->link_name, 0, lbuf, PATH_MAX + 8);
if (ptype == ePatternInvalid)
return FALSE;
if (entry->subset)
perms |= LINK_TO_LINK_SUBSET(perms);
vec[1] = lbuf;
} else {
perms |= LINK_TO_LINK_SUBSET(perms);