mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: convert audit from bool to enum
Audit control support is going to be extended to support allowing policy to which rules should quiet auditing. Update the frontend internals to prepare for this. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -51,8 +51,8 @@ static int file_comp(const void *c1, const void *c2)
|
||||
if ((*e1)->deny != (*e2)->deny)
|
||||
return (*e1)->deny < (*e2)->deny ? -1 : 1;
|
||||
|
||||
if ((*e1)->audit != (*e2)->audit)
|
||||
return (*e1)->audit < (*e2)->audit ? -1 : 1;
|
||||
if ((*e1)->audit.audit_mode != (*e2)->audit.audit_mode)
|
||||
return (*e1)->audit.audit_mode < (*e2)->audit.audit_mode ? -1 : 1;
|
||||
|
||||
return strcmp((*e1)->name, (*e2)->name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user