-
Bug
-
Resolution: Unresolved
-
Undefined
-
rhel-9.5
-
aide-0.19.2-4.el9
-
No
-
Low
-
rhel-security-special-projects
-
ssg_security
-
7
-
1
-
False
-
False
-
-
Yes
-
None
-
Pass
-
-
Automated
-
Rebase
-
-
Proposed
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
Our customers expect that the default /etc/aide.conf will handle standard RHEL installations, but in fact it's not, there are multiple issues such as the ones below:
- Log files are expected to grow
Logs in /var/log have the following rule:LOG = p+u+g+n+S+acl+selinux+xattrs /var/log LOG+ANF+ARF
This above allows creation and deletiong of new files, but LOG enforces files to be *growing* (S), which is not true when logrotate is installed on the system.
- Persistent journal files are not handled correctly
The persistent journal is stored in /var/log/journal, hence fall into LOG rule.
Unfortunately since some minor release of RHEL9, the journal files get an extended attribute user.crtime_usec which updates when the file rotates.
I think that a new rule has to be crafted for the journal, e.g./var/log/journal LOG+ANF+ARF-S-xattrs
What is the impact of this issue to you?
Compliance issues.
Please provide the package NVR for which the bug is seen:
aide-0.16-102.el9
How reproducible is this bug?:
Always
Steps to reproduce (for the journal)
- Create /var/log/journal directory and reboot for changes to take effect
- Execute aide --init and save the new database as the reference
- Rotate the journal
# journalctl --rotate
- Execute aide --check
Expected results
No diff found
Actual results
File: /var/log/journal/b5af1fc93c0a4c7eae36e167138931d5/system.journal
XAttrs : num=1 | num=1
[1] user.crtime_usec <=> pE2614g | [1] user.crtime_usec <=> UBje9Ig
wBgA= | wBgA=
Steps to reproduce (for standard logs)
- Execute aide --init and save the new database as the reference
- Rotate the logs
# logrotate -f /etc/logrotate.conf
- Execute aide --check
Expected results
No diff found
Actual results
File: /var/log/firewalld Size : 759 | 0 File: /var/log/wtmp Size : 100224 | 0
- links to
-
RHBA-2025:154885 aide update