Systemd/src/journal
Yusuke Nojima 5b3cc0c86a journald: fix assertion failure on journal_file_link_data. (#5843)
When some error occurs during the initialization of JournalFile,
the JournalFile can be left without hash tables created.  When later
trying to append an entry to that file, the assertion in
journal_file_link_data() fails, and journald crashes.

This patch fix this issue by checking *_hash_table_size in
journal_file_verify_header().
2017-04-29 19:37:53 +02:00
..
.gitignore gitignore: libsystemd-journal.pc is no more (#3863) 2016-08-02 16:04:39 +02:00
audit-type.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
audit-type.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
audit_type-to-name.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
cat.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
catalog.c tree-wide: make ++/-- usage consistent WRT spacing 2016-02-22 20:32:04 -08:00
catalog.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
compress.c journal: fix warning about LZ4_compress_limitedOutput 2016-12-10 13:52:49 -05:00
compress.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
fsprg.c journal/fsprg: set -Wno-pointer-arithm only for that file 2017-04-23 21:47:26 -04:00
fsprg.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
generate-audit_type-list.sh meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
journal-authenticate.c Merge pull request #2589 from keszybz/resolve-tool-2 2016-02-13 11:15:41 +01:00
journal-authenticate.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journal-def.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journal-file.c journald: fix assertion failure on journal_file_link_data. (#5843) 2017-04-29 19:37:53 +02:00
journal-file.h journal: set STATE_ARCHIVED as part of offlining (#2740) 2016-04-27 08:29:43 +02:00
journal-internal.h sd-journal: add API for opening journal files or directories by fd 2016-04-25 15:24:46 +02:00
journal-qrcode.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journal-qrcode.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journal-send.c sd-journal: suppress empty lines 2016-07-19 17:51:20 +02:00
journal-vacuum.c journalctl: say in which directory we vacuum stuff 2016-10-12 20:25:20 +02:00
journal-vacuum.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journal-verify.c journal-verify: get rid of strerror 2016-09-13 20:10:56 -04:00
journal-verify.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journalctl.c journalctl: move access_check() to shared/ 2017-02-28 21:37:35 -05:00
journald-audit.c tree-wide: make ++/-- usage consistent WRT spacing 2016-02-22 20:32:04 -08:00
journald-audit.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journald-console.c Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
journald-console.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journald-gperf.gperf journal: introduce JournalStorage and JournalStorageSpace structures 2016-10-19 09:53:07 +02:00
journald-kmsg.c tree-wide: add SD_ID128_MAKE_STR, remove LOG_MESSAGE_ID 2017-02-15 00:45:12 -05:00
journald-kmsg.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journald-native.c journal: fix up syslog facility when forwarding native messages (#5667) 2017-03-30 11:56:25 +02:00
journald-native.h Move export format parsing from src/journal-remote/ to src/basic/ 2017-02-14 23:56:48 -05:00
journald-rate-limit.c journald, ratelimit: fix inaccurate message suppression in journal_rate_limit_test() (#4291) 2016-10-06 11:44:51 +02:00
journald-rate-limit.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journald-server.c tree-wide: fix wrong indent (#5757) 2017-04-19 08:48:29 +02:00
journald-server.h tree-wide: add SD_ID128_MAKE_STR, remove LOG_MESSAGE_ID 2017-02-15 00:45:12 -05:00
journald-stream.c journal: add stdout_stream_scan() comment (#4102) 2016-09-28 07:35:48 +02:00
journald-stream.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journald-syslog.c tree-wide: add SD_ID128_MAKE_STR, remove LOG_MESSAGE_ID 2017-02-15 00:45:12 -05:00
journald-syslog.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journald-wall.c Rename formats-util.h to format-util.h 2016-11-07 10:15:08 -05:00
journald-wall.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
journald.c tree-wide: add SD_ID128_MAKE_STR, remove LOG_MESSAGE_ID 2017-02-15 00:45:12 -05:00
journald.conf core: rename StartLimitInterval= to StartLimitIntervalSec= 2016-04-29 16:27:48 +02:00
lookup3.c journal/lookup3: silence gcc 7 implicit-fallthrough warning 2017-01-31 14:04:55 -05:00
lookup3.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
Makefile journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
meson.build meson: fix gcrypt config option 2017-04-24 19:25:33 -04:00
mmap-cache.c tree-wide: use mfree more 2016-10-16 23:35:39 -04:00
mmap-cache.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
sd-journal.c sd-journal: return SD_JOURNAL_INVALIDATE only if journal files were actually deleted/moved (#5580) 2017-04-24 18:33:12 +02:00
test-audit-type.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-catalog.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00
test-compress-benchmark.c test-compress*: silence warning about unused definitions when w/o both xz and lz4 2017-04-19 19:27:01 -04:00
test-compress.c test-compress*: silence warning about unused definitions when w/o both xz and lz4 2017-04-19 19:27:01 -04:00
test-journal-enum.c tree-wide: make ++/-- usage consistent WRT spacing 2016-02-22 20:32:04 -08:00
test-journal-flush.c sd-journal: add API for opening journal files or directories by fd 2016-04-25 15:24:46 +02:00
test-journal-init.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-journal-interleaving.c tests: get rid of strerror 2016-09-13 20:10:57 -04:00
test-journal-match.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-journal-send.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-journal-stream.c sd-journal: add API for opening journal files or directories by fd 2016-04-25 15:24:46 +02:00
test-journal-syslog.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-journal-verify.c sd-journal: add API for opening journal files or directories by fd 2016-04-25 15:24:46 +02:00
test-journal.c sd-journal: add API for opening journal files or directories by fd 2016-04-25 15:24:46 +02:00
test-mmap-cache.c fileio: simplify mkostemp_safe() (#4090) 2016-09-13 08:20:38 +02:00