diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-22 00:44:44 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-22 02:48:21 +0100 |
commit | 2b43729bf9ec7a7a4751f7a0f7f40aada14ec140 (patch) | |
tree | 9732591607553e24e491007c367e2db2dc98b461 | |
parent | test: make sure pcrlock tests run headless (diff) | |
download | systemd-2b43729bf9ec7a7a4751f7a0f7f40aada14ec140.tar.xz systemd-2b43729bf9ec7a7a4751f7a0f7f40aada14ec140.zip |
sd-journal: warn about seals may not be continuous only when the file is sealed
Follow-up for e375bc5fcc080815ce849261eb505d084c2fde3e.
Fixes #30118.
-rw-r--r-- | src/libsystemd/sd-journal/journal-verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-journal/journal-verify.c b/src/libsystemd/sd-journal/journal-verify.c index 654993ac81..8fc53beb42 100644 --- a/src/libsystemd/sd-journal/journal-verify.c +++ b/src/libsystemd/sd-journal/journal-verify.c @@ -925,7 +925,7 @@ int journal_file_verify( goto fail; } - if (!JOURNAL_HEADER_SEALED_CONTINUOUS(f->header)) + if (JOURNAL_HEADER_SEALED(f->header) && !JOURNAL_HEADER_SEALED_CONTINUOUS(f->header)) warning(p, "This log file was sealed with an old journald version where the sequence of seals might not be continuous. We cannot guarantee completeness."); |