Skip to content

Commit ccc901e

Browse files
Merge pull request #4727 from openshift-cherrypick-robot/cherry-pick-4494-to-release-4.18
[release-4.18] NO-ISSUE: okd: Add read permission to /etc/shadow
2 parents 4e242e4 + ebc50bf commit ccc901e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

okd/src/microshift-okd-multi-build.Containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ENV GOMODCACHE=/microshift/.cache
1111

1212
# Adding non-root user for building microshift
1313
RUN useradd -m -s /bin/bash microshift -d /microshift && \
14-
echo 'microshift ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/microshift
14+
echo 'microshift ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/microshift && \
15+
chmod 0640 /etc/shadow
1516
COPY . /src
1617
RUN chown -R microshift:microshift /microshift /src
1718

0 commit comments

Comments
 (0)