mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
4fc97dce3c
Trusts the libffi library inside of nixpkgs on Apple devices. When Apple's fork of libffi is not detected, cffi assumes that libffi uses a strategy for creating closures (i.e. callbacks) that is in certain cases susceptible to a security exploit. Based on some analysis I did: https://groups.google.com/g/python-cffi/c/xU0Usa8dvhk I believe that libffi already contains the code from Apple's fork that is deemed safe to trust in cffi. It uses a more sophisticated strategy for creating trampolines to support closures that works on Apple Silicon, while the simple approach that cffi falls back on does not, so this patch enables code that uses closures on M1 Macs again. Notably, pyOpenSSL is impacted and will be fixed by this, reported in https://github.com/pyca/pyopenssl/issues/873 Note that libffi closures still will not work on signed apps without the com.apple.security.cs.allow-unsigned-executable-memory entitlement while https://github.com/libffi/libffi/pull/621 is still open (which I haven't tested but is my best guess from reading). I am hopeful that all of these changes will be upstreamed back into cffi and libffi, and that this comment provides enough breadcrumbs for future maintainers to track and clean this up. |
||
---|---|---|
.. | ||
attrs | ||
bootstrapped-pip | ||
boto3 | ||
botocore | ||
certifi | ||
cffi | ||
chardet | ||
cheetah | ||
configparser | ||
construct | ||
contextlib2 | ||
coverage | ||
enum | ||
filelock | ||
futures | ||
google-apputils | ||
gtkme | ||
httpretty | ||
hypothesis | ||
idna | ||
importlib-metadata | ||
jinja2 | ||
marisa | ||
markdown | ||
markupsafe | ||
mock | ||
more-itertools | ||
mutagen | ||
numpy | ||
packaging | ||
pillow | ||
pip | ||
pluggy | ||
prettytable | ||
protobuf | ||
pycairo | ||
Pygments | ||
pygobject | ||
pygtk | ||
pyparsing | ||
pyroma | ||
pysqlite | ||
pytest | ||
pytest-runner | ||
pytest-xdist | ||
pyyaml | ||
qpid-python | ||
s3transfer | ||
scandir | ||
setuptools | ||
setuptools-scm | ||
sphinx | ||
sphinxcontrib-websupport | ||
TurboCheetah | ||
typing | ||
zipp |