mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
parser: fixup audit struct to audit enum
This removes the struct wrapper used in the previous patch to ensure that all uses are properly converted. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -961,7 +961,7 @@ struct cod_entry *new_entry(char *id, perms_t perms, char *link_id)
|
||||
entry->name = id;
|
||||
entry->link_name = link_id;
|
||||
entry->perms = perms;
|
||||
entry->audit.audit_mode = AUDIT_UNSPECIFIED;
|
||||
entry->audit = AUDIT_UNSPECIFIED;
|
||||
entry->deny = FALSE;
|
||||
|
||||
entry->pattern_type = ePatternInvalid;
|
||||
@@ -985,7 +985,7 @@ struct cod_entry *copy_cod_entry(struct cod_entry *orig)
|
||||
DUP_STRING(orig, entry, link_name, err);
|
||||
DUP_STRING(orig, entry, nt_name, err);
|
||||
entry->perms = orig->perms;
|
||||
entry->audit.audit_mode = orig->audit.audit_mode;
|
||||
entry->audit = orig->audit;
|
||||
entry->deny = orig->deny;
|
||||
|
||||
/* XXX - need to create copies of the patterns, too */
|
||||
|
Reference in New Issue
Block a user