@@ -99,6 +99,7 @@ _S(AUDIT_ANOM_LINK, "used-suspcious-link")
//_S(AUDIT_INTEGRITY_HASH,"")
//_S(AUDIT_INTEGRITY_PCR,"")
//_S(AUDIT_INTEGRITY_RULE,"")
+//_S(AUDIT_INTEGRITY_EVM_XATTR,"")
_S(AUDIT_KERNEL, "initialized-audit-subsystem")
_S(AUDIT_ANOM_LOGIN_FAILURES, "failed-log-in-too-many-times-to")
_S(AUDIT_ANOM_LOGIN_TIME, "attempted-log-in-during-unusual-hour-to")
@@ -142,6 +142,9 @@ extern "C" {
#define AUDIT_INTEGRITY_PCR 1804 /* PCR invalidation msgs */
#define AUDIT_INTEGRITY_RULE 1805 /* Policy rule */
#endif
+#ifndef AUDIT_INTEGRITY_EVM_XATTR
+#define AUDIT_INTEGRITY_EVM_XATTR 1806 /* New EVM-covered xattr */
+#endif
#define AUDIT_FIRST_ANOM_MSG 2100
#define AUDIT_LAST_ANOM_MSG 2199
@@ -152,6 +152,7 @@ _S(AUDIT_INTEGRITY_STATUS, "INTEGRITY_STATUS" )
_S(AUDIT_INTEGRITY_HASH, "INTEGRITY_HASH" )
_S(AUDIT_INTEGRITY_PCR, "INTEGRITY_PCR" )
_S(AUDIT_INTEGRITY_RULE, "INTEGRITY_RULE" )
+_S(AUDIT_INTEGRITY_EVM_XATTR, "INTEGRITY_EVM_XATTR" )
#ifdef WITH_APPARMOR
_S(AUDIT_AA, "APPARMOR" )
In commit fa516b6 ("EVM: Allow runtime modification of the set of verified xattrs") support was added in the kernel for the AUDIT_INTEGRITY_EVM_XATTR record with the EVM_ADD_XATTRS config option. Its record number is 1806. It has a field "xattr=" with result field "res=". Add support for the record type number. Since the xattr field isn't searchable, a parser wasn't necessary. See: https://github.com/linux-audit/audit-userspace/issues/85 Signed-off-by: Richard Guy Briggs <rgb@redhat.com> --- auparse/normalize_record_map.h | 1 + lib/libaudit.h | 3 +++ lib/msg_typetab.h | 1 + 3 files changed, 5 insertions(+)