mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: convert xmatch to use out of band transitions
xattrs can contain NULL characters in their values which means we can not user regular NULL transitions to separate values. To fix this use out of band transition instead. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -512,7 +512,7 @@ static int process_profile_name_xmatch(Profile *prof)
|
||||
convert_aaregex_to_pcre(xattr_value, 0,
|
||||
glob_default, tbuf,
|
||||
&len);
|
||||
if (!rules->append_rule(tbuf.c_str(), dfaflags)) {
|
||||
if (!rules->append_rule(tbuf.c_str(), true, dfaflags)) {
|
||||
delete rules;
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user