-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rule dir_groupowner_system_journal
- New rule for checking group-ownership of journal directories (/var/log/journal/...). - Satisfies STIG requirement UBTU-22-232085 - Based on existing rule file_groupowner_system_journal (cherry picked from commit 35fcfeb)
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
linux_os/guide/system/logging/journald/dir_groupowner_system_journal/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
documentation_complete: true | ||
|
||
title: 'Verify group-owner of system journal directories' | ||
|
||
description: |- | ||
Verify the /run/log/journal and /var/log/journal directories are group-owned by | ||
"systemd-journal" by using the following command: | ||
<pre> | ||
$ sudo find /run/log/journal /var/log/journal -type d -exec stat -c "%n %G" {} \; | ||
</pre> | ||
If any output returned is not owned by "systemd-journal", this is a finding. | ||
rationale: |- | ||
Only authorized personnel should be aware of errors and the details of the errors. | ||
Error messages are an indicator of an organization's operational state or can identify | ||
the operating system or platform. Additionally, personally identifiable information | ||
(PII) and operational information must not be revealed through error messages to | ||
unauthorized personnel or their designated representatives. | ||
references: | ||
disa: CCI-001314 | ||
stigid@ubuntu2204: UBTU-22-232085 | ||
|
||
severity: medium | ||
|
||
fixtext: | | ||
Configure the system to set the appropriate ownership to the directories | ||
used by the systemd journal. Add or modify the following lines in the | ||
"/usr/lib/tmpfiles.d/systemd.conf" file: | ||
<pre> | ||
z /run/log/journal 2640 root systemd-journal - - | ||
z /var/log/journal 2640 root systemd-journal - - | ||
</pre> | ||
Restart the system for the changes to take effect. | ||
template: | ||
name: file_groupowner | ||
vars: | ||
filepath: | ||
- /run/log/journal/ | ||
- /var/log/journal/ | ||
recursive: 'true' | ||
gid_or_name: 'systemd-journal' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters