mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
parser: Copy the named transition when copying a cod_entry
The copy_cod_entry() function was not copying the nt_name field of the cod_entry struct. This was discovered during code review and I'm not certain if it causes any real world bugs. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -663,6 +663,7 @@ struct cod_entry *copy_cod_entry(struct cod_entry *orig)
|
||||
DUP_STRING(orig, entry, ns, err);
|
||||
DUP_STRING(orig, entry, name, err);
|
||||
DUP_STRING(orig, entry, link_name, err);
|
||||
DUP_STRING(orig, entry, nt_name, err);
|
||||
entry->mode = orig->mode;
|
||||
entry->audit = orig->audit;
|
||||
entry->deny = orig->deny;
|
||||
|
Reference in New Issue
Block a user