Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-07-07 | journal/compress: fix calls to decompress_blob | Zbigniew Jędrzejewski-Szmek | |
2014-07-06 | journal: add LZ4 as optional compressor | Zbigniew Jędrzejewski-Szmek | |
Add liblz4 as an optional dependency when requested with --enable-lz4, and use it in preference to liblzma for journal blob and coredump compression. To retain backwards compatibility, XZ is used to decompress old blobs. Things will function correctly only with lz4-119. Based on the benchmarks found on the web, lz4 seems to be the best choice for "quick" compressors atm. For pkg-config status, see http://code.google.com/p/lz4/issues/detail?id=135. | |||
2014-03-18 | util: replace close_nointr_nofail() by a more useful safe_close() | Lennart Poettering | |
safe_close() automatically becomes a NOP when a negative fd is passed, and returns -1 unconditionally. This makes it easy to write lines like this: fd = safe_close(fd); Which will close an fd if it is open, and reset the fd variable correctly. By making use of this new scheme we can drop a > 200 lines of code that was required to test for non-negative fds or to reset the closed fd variable afterwards. | |||
2014-01-27 | Replace mkostemp+unlink with open(O_TMPFILE) | Zbigniew Jędrzejewski-Szmek | |
This will only work on Linux >= 3.11, and probably not on all filesystems. Fallback code is provided. | |||
2014-01-11 | journal: fix access to munmapped memory in sd_journal_enumerate_unique | Zbigniew Jędrzejewski-Szmek | |
sd_j_e_u needs to keep a reference to an object while comparing it with possibly duplicate objects in other files. Because the size of mmap cache is limited, with enough files and object to compare to, at some point the object being compared would be munmapped, resulting in a segmentation fault. Fix this issue by turning keep_always into a reference count that can be increased and decreased. Other callers which set keep_always=true are unmodified: their references are never released but are ignored when the whole file is closed, which happens at some point. keep_always is increased in sd_j_e_u and later on released. | |||
2014-01-05 | journal: Add missing byte order conversions | George McCollister | |
Convert entry_array.items[0] to host byte order prior to passing it to chain_cache_put(). [zj: also use le64toh in journal-verify.c] https://bugs.freedesktop.org/show_bug.cgi?id=73194 | |||
2013-06-27 | journal-verify: Use proper printf placeholder | Jan Janssen | |
2013-06-22 | journal-verify: allow unlinked data entries | Zbigniew Jędrzejewski-Szmek | |
Sometimes an entry is not successfully written, and we end up with data items which are "unlinked", not connected to, and not used by any entry. This will usually happen when we write to write a core dump, and the initial small data fields are written successfully, but the huge COREDUMP= field is not written. This situation is hard to avoid, but the results are mostly harmless. Thus only warn about unused data items. Also, be more verbose about why journal files failed verification. This should help diagnose journal failure modes without resorting to a hexadecimal editor. https://bugs.freedesktop.org/show_bug.cgi?id=65235 (esp. see system.journal attached to the bug report). | |||
2013-06-10 | Use stdint.h macros instead of casts to print uint64_t values | Zbigniew Jędrzejewski-Szmek | |
Casts are visually heavy, and can obscure unwanted truncations. | |||
2012-11-21 | journal: by default do not decompress dat objects larger than 64K | Lennart Poettering | |
This introduces a new data threshold setting for sd_journal objects which controls the maximum size of objects to decompress. This is relieves the library from having to decompress full data objects even if a client program is only interested in the initial part of them. This speeds up "systemd-coredumpctl" drastically when invoked without parameters. | |||
2012-10-19 | util: unify usage of on_tty() in util.c | Lennart Poettering | |
2012-10-13 | journal-verify: get rid of an unused variable | Zbigniew Jędrzejewski-Szmek | |
When compiling without gcrypt, gcc emits an annoying warning. | |||
2012-09-24 | journald: always pass first entry timestamp back from journal_file_verify() | Lennart Poettering | |
2012-09-13 | journald: don't reposition window if we don't have to | Lennart Poettering | |
2012-08-25 | journal: add HAVE_XZ check to avoid build failure | Yin Kangkai | |
Without this, build fail with --disable-xz or xz not installed. | |||
2012-08-21 | journalctl: be more friendly when informing about seal verification | Lennart Poettering | |
2012-08-21 | journal: be more careful when keeping around mmaps we still need | Lennart Poettering | |
2012-08-21 | verify: optimize entry search a bit by using bisection | Lennart Poettering | |
2012-08-21 | journal: automatically evolve FSS key even when nothing is logged | Lennart Poettering | |
2012-08-20 | journal: add missing endianess conversion | Lennart Poettering | |
2012-08-20 | journal: make libgcrypt dependency optional | Lennart Poettering | |
2012-08-20 | journal: use a macro to check for file header flags | Lennart Poettering | |
2012-08-20 | journal: fix tag ordering check | Lennart Poettering | |
2012-08-19 | journal: fix bisection algorithm | Lennart Poettering | |
2012-08-19 | journal: validate timestamps as well | Lennart Poettering | |
2012-08-18 | journal: even more simple static object tests | Lennart Poettering | |
2012-08-18 | journal: refuse verification of files with unknown flags | Lennart Poettering | |
2012-08-18 | jounral: write bit fiddling test | Lennart Poettering | |
This test goes through every single bit in a journal file, toggles it, and checks if this change is detected by the verification. | |||
2012-08-18 | journal: fix verification without key | Lennart Poettering | |
2012-08-18 | journald: add additional simple static tests to verifier | Lennart Poettering | |
2012-08-17 | journal: after verification output validated time range | Lennart Poettering | |
2012-08-17 | journal: reword verification messages a bit | Lennart Poettering | |
2012-08-17 | journal: ensure that entries and tags are properly ordered | Lennart Poettering | |
2012-08-17 | journal: show new header fields in header dump | Lennart Poettering | |
2012-08-17 | journal: don't write tag objects if nothing has been written since the last time | Lennart Poettering | |
2012-08-17 | man: add man pages for new FSS stuff | Lennart Poettering | |
2012-08-17 | journal: rework terminology | Lennart Poettering | |
Let's clean up our terminology a bit. New terminology: FSS = Forward Secure Sealing FSPRG = Forward Secure Pseudo-Random Generator FSS is the combination of FSPRG and a HMAC. Sealing = process of adding authentication tags to the journal. Verification = process of checking authentication tags to the journal. Sealing Key = The key used for adding authentication tags to the journal. Verification Key = The key used for checking authentication tags of the journal. Key pair = The pair of Sealing Key and Verification Key Internally, the Sealing Key is the combination of the FSPRG State plus change interval/start time. Internally, the Verification Key is the combination of the FSPRG Seed plus change interval/start time. | |||
2012-08-16 | journal: add FSPRG journal authentication | Lennart Poettering | |
2012-08-16 | journal: fix tag sequence number verification | Lennart Poettering | |
2012-08-16 | journalctl: immeidately terminate on invalid seed | Lennart Poettering | |
2012-08-16 | journal: parse fsprg seed | Lennart Poettering | |
2012-08-16 | journal: count number of entry arrays in header | Lennart Poettering | |
2012-08-16 | journal: fix variable initialization | Lennart Poettering | |
2012-08-16 | journal: fix unitialized var | Lennart Poettering | |
2012-08-16 | journal: journal-send.h doesn't actually exist | Lennart Poettering | |
2012-08-16 | journal: verify structural consistency | Lennart Poettering | |
2012-08-16 | journal: add color to verification progress bar | Lennart Poettering | |
2012-08-16 | journal: verify compressed objects | Lennart Poettering | |
2012-08-16 | journal: verify hashes only during actual verification, not all the time | Lennart Poettering | |
2012-08-16 | journal: split up journal-file.c | Lennart Poettering | |