[PATCH 6/8] integrity: Factor out common part of integrity_audit_msg()