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.
Bug 1955724 - [RFE] Logging Should Meet CIS Benchmark
Summary: [RFE] Logging Should Meet CIS Benchmark
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: insights-client
Version: 8.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: beta
: ---
Assignee: Jason Jerome
QA Contact: Pavol Kotvan
URL:
Whiteboard:
Depends On:
Blocks: 2236120
TreeView+ depends on / blocked
 
Reported: 2021-04-30 17:36 UTC by Bernie Hoefer
Modified: 2023-11-14 17:03 UTC (History)
16 users (show)

Fixed In Version: insights-client-3.2.1-1.el8_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2236120 (view as bug list)
Environment:
Last Closed: 2023-11-14 15:35:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github RedHatInsights insights-core pull 3820 0 None Merged feat: modify umask before creating log files 2023-08-22 09:43:30 UTC
Red Hat Issue Tracker RHIN-488 0 None None None 2022-03-07 19:54:11 UTC
Red Hat Knowledge Base (Solution) 6975409 0 None None None 2022-09-12 15:00:07 UTC
Red Hat Product Errata RHBA-2023:7023 0 None None None 2023-11-14 15:35:49 UTC

Description Bernie Hoefer 2021-04-30 17:36:48 UTC
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 14 Christian 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.

Comment 44 errata-xmlrpc 2023-11-14 15:35:31 UTC
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


Note You need to log in before you can comment on or make changes to this bug.