Skip to content

Commit b19404b

Browse files
Merge pull request #4494 from praveenkumar/fix_multiarch_okd
NO-ISSUE: okd: Add read permission to /etc/shadow
2 parents 89ea3e9 + 7df9f3a commit b19404b

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)