diff --git a/auditd-record.cpp b/auditd-record.cpp index f73e27f..2dcf76e 100644 --- a/auditd-record.cpp +++ b/auditd-record.cpp @@ -69,12 +69,19 @@ std::function interpreted_string_record_type_check_fu }; } +std::function any_record_type_check_function() +{ + return [](const std::string &value) -> bool { + return true; + }; +} + } // unnamed namespace #define register_record_type(audit_type, check_function) \ static const AuditTypeCheckRegister audit_type_check_register_##audit_type(audit_type, check_function) -register_record_type(AUPARSE_TYPE_UNCLASSIFIED, interpreted_string_record_type_check_function()); +register_record_type(AUPARSE_TYPE_UNCLASSIFIED, any_record_type_check_function()); register_record_type(AUPARSE_TYPE_UID, integer_record_type_check_function()); register_record_type(AUPARSE_TYPE_GID, integer_record_type_check_function()); register_record_type(AUPARSE_TYPE_SYSCALL, integer_record_type_check_function());