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

imjournal.state file create mode #5351

Open
achamo opened this issue Mar 27, 2024 · 0 comments
Open

imjournal.state file create mode #5351

achamo opened this issue Mar 27, 2024 · 0 comments

Comments

@achamo
Copy link

achamo commented Mar 27, 2024

Expected behavior

imjournal.state created with mode 0640 (default)

Actual behavior

imjournal.state created with unexpected mode (7755)

Steps to reproduce the behavior

Enable imjournal module

Environment

  • rsyslog version: 8.2306 and later
  • platform: CentOS Stream 9
$IMJournalStateFile imjournal.state
$imjournalRatelimitInterval 600
$imjournalRatelimitBurst 50000

Between 8.2304 & 8.2306 in

persistJournalState(void)
fopen was replaced by open and the new cs.fCreateMode
I don't see in the logs (even in debug mode) the expected warning
LogMsg(0, RS_RET_OK_WARN, LOG_WARNING, "imjournal: filecreatemode is not set, "
I believe cs.fCreateMode is still -1 and not 0640

I can work around the issue by loading the module differently

module(load="imjournal" FileCreateMode="0640" ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant