Skip to content

journal config are not scap conform #520

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

Open
tuxmaster5000 opened this issue Mar 4, 2025 · 2 comments
Open

journal config are not scap conform #520

tuxmaster5000 opened this issue Mar 4, 2025 · 2 comments

Comments

@tuxmaster5000
Copy link

When set journald settings via:

journald_settings => {
  'foo' => 'bar'
}

it will result in entry's like:

[Journal]
foo = bar

but the scap scanners will require:

[Journal]
foo=bar

without the spaces like it is written as comments the config file.

@TheMeier
Copy link
Contributor

TheMeier commented Mar 4, 2025

Whitespace immediately before or after the "=" is ignored
https://www.freedesktop.org/software/systemd/man/latest/systemd.syntax.html#

So it's valid systemd config. You should file an issue with the scanner instead

@mdc-webdb
Copy link

But the config that comes with it, are also without it.:

cat /etc/systemd/journald.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the journald.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config.
#
# See journald.conf(5) for details.

[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000

Also in the man pages:
man 5 journald.conf

And man systemd.syntax
also show's that the preferred syntax is without spaces.

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

3 participants