Skip to content
Snippets Groups Projects
Select Git revision
  • 069fefdaf42490f1e00243614fb5f3d5d2614b81
  • main default protected
  • 3.10
  • 3.11
  • revert-15688-bpo-38031-_io-FileIO-opener-crash
  • 3.8
  • 3.9
  • 3.7
  • enum-fix_auto
  • branch-v3.11.0
  • backport-c3648f4-3.11
  • gh-93963/remove-importlib-resources-abcs
  • refactor-wait_for
  • shared-testcase
  • v3.12.0a2
  • v3.12.0a1
  • v3.11.0
  • v3.8.15
  • v3.9.15
  • v3.10.8
  • v3.7.15
  • v3.11.0rc2
  • v3.8.14
  • v3.9.14
  • v3.7.14
  • v3.10.7
  • v3.11.0rc1
  • v3.10.6
  • v3.11.0b5
  • v3.11.0b4
  • v3.10.5
  • v3.11.0b3
  • v3.11.0b2
  • v3.9.13
34 results

cpython

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Miss Islington (bot) authored and GitHub committed
    If kernel fips is enabled, we get permission error upon doing
    `import crypt`. So, if kernel fips is enabled, disable the
    unallowed hashing methods.
    
    Python 3.9.1 (default, May 10 2022, 11:36:26)
    [GCC 10.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import crypt
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/crypt.py", line 117, in <module>
        _add_method('MD5', '1', 8, 34)
      File "/usr/lib/python3.9/crypt.py", line 94, in _add_method
        result = crypt('', salt)
      File "/usr/lib/python3.9/crypt.py", line 82, in crypt
        return _crypt.crypt(word, salt)
    PermissionError: [Errno 1] Operation not permitted
    
    Signed-off-by: default avatarShreenidhi Shedi <sshedi@vmware.com>
    (cherry picked from commit 2fa03b1b)
    
    Co-authored-by: default avatarShreenidhi Shedi <53473811+sshedi@users.noreply.github.com>
    069fefda
    History
    Name Last commit Last update