mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-03 07:45:50 +00:00
fix change profile
This commit is contained in:
@@ -515,7 +515,7 @@ static int process_dfa_entry(aare_ruleset_t *dfarules, struct cod_entry *entry)
|
|||||||
if (entry->namespace)
|
if (entry->namespace)
|
||||||
sprintf(lbuf, "%s//%s", entry->namespace, entry->name);
|
sprintf(lbuf, "%s//%s", entry->namespace, entry->name);
|
||||||
else
|
else
|
||||||
sprintf(lbuf, "%s", entry->namespace, entry->name);
|
sprintf(lbuf, "%s", entry->name);
|
||||||
ptype = convert_aaregex_to_pcre(lbuf, 0, tbuf, 2*PATH_MAX + 8);
|
ptype = convert_aaregex_to_pcre(lbuf, 0, tbuf, 2*PATH_MAX + 8);
|
||||||
if (ptype == ePatternInvalid)
|
if (ptype == ePatternInvalid)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user