Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(RHEL-33890) Do not rotate unrelated journal files when full or corrupted #272

Merged

Conversation

dtardon
Copy link
Member

@dtardon dtardon commented May 15, 2024

Resolves: RHEL-33890

DaanDeMeyer and others added 2 commits May 15, 2024 14:09
Especially when using in-memory logging, these are too noisy so
let's drop them back to debug level.

(cherry picked from commit afc47ee)

Related: RHEL-33890
When we fail to add an entry to a journal file, typically when the file
is full or corrupted, it is not necessary to rotate other journal files.

Not only that's unnecessary, rotating all journal files allows
unprivileged users to wipe system or other user's journals by writing
many journal entries to their own user journal file.

Let's rotate all journal files only when
- it is really requested by a privileged user (e.g. by journalctl --rotate), or
- the system time jumps backwards.
And, otherwise rotate only the journal file we are currently writing.

(cherry picked from commit bd0ec61)

Resolves: RHEL-33890
@github-actions github-actions bot changed the title Do not rotate unrelated journal files when full or corrupted (RHEL-33890) Do not rotate unrelated journal files when full or corrupted May 15, 2024
@github-actions github-actions bot added tracker/invalid-product pr/needs-ci Formerly needs-ci pr/needs-review Formerly needs-review labels May 15, 2024
Copy link

github-actions bot commented May 15, 2024

Commit validation

Tracker - RHEL-33890

The following commits meet all requirements

commit upstream
f4c88e4 - Drop log level of header limits log message systemd/systemd@afc47ee
991e614 - journal: do not rotate unrelated journal files when full or corrupted systemd/systemd@bd0ec61

Tracker validation

Success

🟢 Tracker RHEL-33890 has set desired product: CentOS Stream 9
🟢 Tracker RHEL-33890 has set desired component: systemd
🟢 Tracker RHEL-33890 has been approved


Pull Request validation

Success

🟢 CI - All checks have passed
🟢 Review - Reviewed by a member
🟢 Approval - Changes were approved


Auto Merge

Success

🟢 Pull Request is not marked as draft and it's not blocked by dont-merge label
🟢 Pull Request meet requirements, title has correct form
🟢 Pull Request meet requirements, mergeable is true
🟢 Pull Request meet requirements, mergeable_state is clean
🟢 Pull Request has correct target branch main
🟢 Pull Request was merged

@jamacku jamacku added this to the RHEL-9.5.0 milestone May 15, 2024
@github-actions github-actions bot removed the pr/needs-ci Formerly needs-ci label May 15, 2024
@github-actions github-actions bot removed the pr/needs-review Formerly needs-review label Jun 11, 2024
@github-actions github-actions bot merged commit 6e5dce6 into redhat-plumbers:main Jun 11, 2024
29 checks passed
@dtardon dtardon deleted the RHEL-33890-journal-rotate branch June 11, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants