diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-08-18 00:40:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-18 00:40:03 +0200 |
commit | b72631e59c1b9f62bcfaf1ce3f7e72e4a3beee89 (patch) | |
tree | 1fb0d6f85169287a189e61702d62af0448ab63bd /src/journal/journalctl.c | |
parent | c586dbf110abdbf0317bdd0f0a5900d709194409 (diff) |
jounral: write bit fiddling test
This test goes through every single bit in a journal file, toggles it,
and checks if this change is detected by the verification.
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r-- | src/journal/journalctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 25f41f6322..ba678a289f 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -637,7 +637,7 @@ static int verify(sd_journal *j) { log_warning("Journal file %s has sealing enabled but verification key has not been passed using --verify-key=.", f->path); #endif - k = journal_file_verify(f, arg_verify_key, &from, &to, &total); + k = journal_file_verify(f, arg_verify_key, &from, &to, &total, true); if (k == -EINVAL) { /* If the key was invalid give up right-away. */ return k; @@ -648,7 +648,7 @@ static int verify(sd_journal *j) { char a[FORMAT_TIMESTAMP_MAX], b[FORMAT_TIMESTAMP_MAX], c[FORMAT_TIMESPAN_MAX]; log_info("PASS: %s", f->path); - if (journal_file_fss_enabled(f)) + if (arg_verify_key && journal_file_fss_enabled(f)) log_info("=> Validated from %s to %s, %s missing", format_timestamp(a, sizeof(a), from), format_timestamp(b, sizeof(b), to), |