Bug 1904573 - OpenShift: containers modify /etc/passwd group writable
Summary: OpenShift: containers modify /etc/passwd group writable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.13.0
Assignee: Rafael Fonseca
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-04 19:32 UTC by Dave Baker
Modified: 2023-05-17 22:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Internal change. No doc text needed
Clone Of:
Environment:
Last Closed: 2023-05-17 22:46:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 6872 0 None open Bug 1904573: baremetal container modify /etc/passwd group writable 2023-02-17 10:00:29 UTC
Red Hat Product Errata RHSA-2023:1326 0 None None None 2023-05-17 22:46:44 UTC

Description Dave Baker 2020-12-04 19:32:00 UTC
Description of problem:

Refer to https://bugzilla.redhat.com/show_bug.cgi?id=1791534

The openshift4/ose-baremetal-installer-rhel8 container was also discovered to suffer from the same problem.


Version-Release number of selected component (if applicable):

latest / v4.6 / v4.6.0-202011181111.p0


How reproducible:

Always


Steps to Reproduce:

$ podman save openshift4/ose-baremetal-installer-rhel8  | tar -xvf -
...
$ tar vtf 3e1bc69229c4f2c3c631d68524091f7f2452e5f3fb86b3f9967e201785051d23.tar | grep etc/passwd
-rw-rw-r-- 0/0             765 2020-11-18 08:55 etc/passwd
-rw-r--r-- 0/0             703 2020-10-30 06:09 etc/passwd-


Actual results:

We see: -rw-rw-r--

Expected results:

Expect to see: -rw-r--r--


Additional info:

Comment 4 Dave Baker 2020-12-15 19:04:59 UTC
Copying the reference link here for visibility - https://access.redhat.com/articles/4859371 contains details of using nss_wrapper to work around changing permissions on /etc/passwd

Comment 6 Dmitry Tantsur 2023-02-16 14:53:46 UTC
I don't see any relevant code in baremetal-operator, and the bug description only mentions openshift-installer, so moving the bug there for further triaging.

Comment 10 Gaoyun Pei 2023-02-22 09:11:16 UTC
Verified this on registry.ci.openshift.org/ocp/release:4.13.0-0.ci-2023-02-22-062403.

For image
  baremetal-installer                            sha256:e19f171ac3955654150db6a2bc8233c4bf46dbcc4831c529023095c9c1fa6825

[root@preserve-gpei-worker test]# tar vtf 11eb2df7eab8707909716903be89831d7b276eacefe92d5e833e001ab44d44aa.tar| grep etc/passwd
-rw-r--r-- 0/0             829 2023-02-21 20:23 etc/passwd
-rw-r--r-- 0/0             767 2022-09-06 13:22 etc/passwd-

Comment 13 errata-xmlrpc 2023-05-17 22:46:32 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 (Important: OpenShift Container Platform 4.13.0 security 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/RHSA-2023:1326


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