Skip to content

Commit

Permalink
Mention the systemd issue with old-style callbacks (#74)
Browse files Browse the repository at this point in the history
* Mention the systemd issue with old-style callbacks

* Copy the whole explanation
  • Loading branch information
arigo authored Apr 24, 2024
1 parent 56f7609 commit d7f750b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/source/using.rst
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,10 @@ ffi.callback() and the result is the same.
- `On Mac OS X,`__ you need to give your application the entitlement
``com.apple.security.cs.allow-unsigned-executable-memory``.

- On Linux, ``systemd`` installs syscall filtering rules on services
it supervises. The `MemoryDenyWriteExecute=` setting in
`systemd.exec(5)` defaults to on, and can quietly block this.

Note also that a cffi fix for this issue was attempted---see
the ``ffi_closure_alloc`` branch---but was not merged because it
creates potential `memory corruption`__ with ``fork()``.
Expand Down

0 comments on commit d7f750b

Please sign in to comment.