From 025dadcd9cf1f5e88bb2ea2cdf4f749965528067 Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Fri, 10 Mar 2023 06:45:00 -0500 Subject: [PATCH] Update common.Dockerfile --- root-image/common.Dockerfile | 3 +++ 1 file changed, 3 insertions(+) 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