apparmor: make policy_unpack able to audit different info messages

Switch unpack auditing to using the generic name field in the audit
struct and make it so we can start adding new info messages about
why an unpack failed.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
John Johansen
2017-07-18 23:37:18 -07:00
parent 26b7899510
commit 2410aa96d6
2 changed files with 40 additions and 16 deletions

View File

@@ -127,9 +127,9 @@ struct apparmor_audit_data {
} fs;
};
struct {
const char *name;
long pos;
struct aa_profile *profile;
const char *ns;
long pos;
} iface;
int signal;
struct {