Skip to content

Commit f621dbb

Browse files
authored
Merge pull request #64572 from jangel97/add_crio_image_requirement
clarified /etc/passwd requirement when running images for CRI-O compa…
2 parents f5c807d + 8e3ff5b commit f621dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/images-create-guide-openshift.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Because the container user is always a member of the root group, the container u
3939

4040
[WARNING]
4141
====
42-
Care must be taken when altering the directories and file permissions of sensitive areas of a container, which is no different than to a normal system.
42+
Care must be taken when altering the directories and file permissions of the sensitive areas of a container. If applied to sensitive areas, such as the `/etc/passwd` file, such changes can allow the modification of these files by unintended users, potentially exposing the container or host. CRI-O supports the insertion of arbitrary user IDs into a container's `/etc/passwd` file. As such, changing permissions is never required.
4343
44-
If applied to sensitive areas, such as `/etc/passwd`, this can allow the modification of such files by unintended users potentially exposing the container or host. CRI-O supports the insertion of arbitrary user IDs into the container's `/etc/passwd`, so changing permissions is never required.
44+
Additionally, the `/etc/passwd` file should not exist in any container image. If it does, the CRI-O container runtime will fail to inject a random UID into the `/etc/passwd` file. In such cases, the container might face challenges in resolving the active UID. Failing to meet this requirement could impact the functionality of certain containerized applications.
4545
====
4646

4747
In addition, the processes running in the container must not listen on privileged ports, ports below 1024, since they are not running as a privileged user.

0 commit comments

Comments
 (0)