projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f59d94b
)
journald: fix LOG_AUTH facility in audit code
author
Lennart Poettering
<lennart@poettering.net>
Tue, 26 Jan 2016 12:48:32 +0000
(13:48 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 26 Jan 2016 13:42:04 +0000
(14:42 +0100)
Fixes: #2304
src/journal/journald-audit.c
patch
|
blob
|
history
diff --git
a/src/journal/journald-audit.c
b/src/journal/journald-audit.c
index
3c13fe0
..
2897013
100644
(file)
--- a/
src/journal/journald-audit.c
+++ b/
src/journal/journald-audit.c
@@
-397,8
+397,8
@@
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
");
+ assert_cc(
4 == LOG_FAC(LOG_AUTH)
);
+ IOVEC_SET_STRING(iov[n_iov++], "SYSLOG_FACILITY=
4
");
IOVEC_SET_STRING(iov[n_iov++], "SYSLOG_IDENTIFIER=audit");
type_name = audit_type_name_alloca(type);