[systemd-devel] [PATCH 1/2] journal: set seal even for readonly journalfiles
Mirco Tischler
mt-ml at gmx.de
Sat Sep 22 12:45:30 PDT 2012
journalctl needs to know wether the file has been sealed to
be able to do verification.
---
src/journal/journal-file.c | 3 +--
1 Datei geändert, 1 Zeile hinzugefügt(+), 2 Zeilen entfernt(-)
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 6db9955..f775fec 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -260,8 +260,7 @@ static int journal_file_verify_header(JournalFile *f) {
f->compress = JOURNAL_HEADER_COMPRESSED(f->header);
- if (f->writable)
- f->seal = JOURNAL_HEADER_SEALED(f->header);
+ f->seal = JOURNAL_HEADER_SEALED(f->header);
return 0;
}
--
1.7.12.1
More information about the systemd-devel
mailing list