Skip to content

Commit 6cd608f

Browse files
committed
Remove passwd- file to make CIS benchmark happy
Change-Id: If655240c96b0bed20803185fe5ed7c40b25f2cf9
1 parent 9b50710 commit 6cd608f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ RUN ln -fs /bin/rm /usr/sbin/rm \
3636
&& clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
3737
COPY --from=mad-hack /lib/udev/scsi_id /lib/udev_containerized/scsi_id
3838

39+
# The CIS benchmark does not like having the backup passwd file accessible.
40+
RUN rm -f /etc/passwd-
41+
3942
ENTRYPOINT ["/gce-pd-csi-driver"]

0 commit comments

Comments
 (0)