X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fjournal%2Fjournald-audit.c;fp=src%2Fjournal%2Fjournald-audit.c;h=46eb82fa34ff4f34a8a24cdad9a075bfdf05f807;hp=c2f1545cc9b0a2c89b2e3e92f1826bce31bd3f8c;hb=cd556b6ca8aec8dd371806afedec45f852f8f724;hpb=924bc14fef39373f4523664207007a6c82c2b2d5 diff --git a/src/journal/journald-audit.c b/src/journal/journald-audit.c index c2f1545cc..46eb82fa3 100644 --- a/src/journal/journald-audit.c +++ b/src/journal/journald-audit.c @@ -373,7 +373,7 @@ static void process_audit_string(Server *s, int type, const char *data, size_t s if (isempty(p)) return; - n_iov_allocated = N_IOVEC_META_FIELDS + 5; + n_iov_allocated = N_IOVEC_META_FIELDS + 7; iov = new(struct iovec, n_iov_allocated); if (!iov) { log_oom(); @@ -392,6 +392,10 @@ static void process_audit_string(Server *s, int type, const char *data, size_t s sprintf(id_field, "_AUDIT_ID=%" PRIu64, id); IOVEC_SET_STRING(iov[n_iov++], id_field); + assert_cc(32 == LOG_AUTH); + IOVEC_SET_STRING(iov[n_iov++], "SYSLOG_FACILITY=32"); + IOVEC_SET_STRING(iov[n_iov++], "SYSLOG_IDENTIFIER=audit"); + m = alloca(strlen("MESSAGE= ") + strlen(p) + 1); sprintf(m, "MESSAGE= %s", type, p); IOVEC_SET_STRING(iov[n_iov++], m);