Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Customers are getting dinged because their Insights-registered machines are creating log files with permissions that do not meet the Center for Internet Security (CIS) benchmarks. Specifically, the audit rule in its section 4.2.3 (page 336 of the PDF):
https://downloads.cisecurity.org/download?u=1619043954
...for Red Hat Enterprise Linux 8. (There is a similar audit rule for RHEL 7:
https://downloads.cisecurity.org/download?u=1619043135
)
Version-Release number of selected component (if applicable):
insights-client-3.1.1-1.el8_3.noarch
# insights-client --version
Client: 3.1.1
Core: 3.0.219-1
How reproducible / Steps to Reproduce:
1. Note that a minimal-install RHEL 8.3 machine's root user has a default umask of 0022.
2. Install the insights-client RPM and register it.
Actual results:
Note the /var/log/insights-client directory gets created with mode 700 (which meets the benchmark), but the files inside it have mode 644 (which run afoul of the benchmark):
# ls -aFl /var/log/i*
total 208
drwx------. 2 root root 62 Apr 30 10:29 ./
drwxr-xr-x. 11 root root 4096 Apr 30 10:29 ../
-rw-r--r--. 1 root root 10939 Apr 30 10:29 insights-client.log
-rw-r--r--. 1 root root 184362 Apr 30 10:29 insights-client.log.1
Expected results:
Files inside /var/log/insights-client should be created with mode 600.
Comment 14Christian Marineau
2023-02-21 15:53:48 UTC
=== PM Update ===
The resolution to this RFE is currently aligned to Fall 2023. The target release may be re-considered over time, but this change is considered a high priority for 2023.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (insights-client bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2023:7023