diff --git a/root-image/common.Dockerfile b/root-image/common.Dockerfile index 2814e34..bc464b8 100644 --- a/root-image/common.Dockerfile +++ b/root-image/common.Dockerfile @@ -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