Skip to content

Commit

Permalink
Merge pull request #48 from CybercentreCanada/FIPS_workaround
Browse files Browse the repository at this point in the history
Update common.Dockerfile
  • Loading branch information
cccs-rs authored Mar 10, 2023
2 parents 86fea0b + 025dadc commit b16ddc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions root-image/common.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ RUN apt-get update && apt-get -yy upgrade && rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -yy libffi6 libfuzzy2 libmagic1 \
&& rm -rf /var/lib/apt/lists/*

# Patch Python 3.9 for FIPS - https://github.com/python/cpython/issues/95231 (Not necessary for Python 3.10+)
RUN sed -i -e 's/if e.errno == errno.EINVAL:/if e.errno in {errno.EINVAL, errno.EPERM, errno.ENOSYS}:/g' /usr/local/lib/python3.9/crypt.py

0 comments on commit b16ddc0

Please sign in to comment.