is fork() supported?
DJ Delorie
dj@redhat.com
Thu Aug 5 18:13:15 GMT 2021
>> I see four options...
>>
>> 1. Not supported. Sorry.
>>
>> 2. Supported only if you have fork-able closure backings (mmap or
>> maybe ktmpfile, but not file-backed) but this means documenting
>> that (at least) selinux settings might affect this. Caveat
>> Programmer.
>>
>> 3. Some API that says "I need this" so it can fail in a more useful
>> way than "segfault".
>>
>> 4. Fully supported, and we have some work to do to handle fork events.
Andrew Haley writes:
> The bug that will never die.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1249685
> https://bugzilla.redhat.com/show_bug.cgi?id=531233
> https://bugzilla.redhat.com/show_bug.cgi?id=772657
Sounds like a vote for (1) or (2) ;-)
Florian Weimer writes:
> Well, there are two ways to fix it: Avoid the need for alias mappings by
> switching to static trampolines, or create new alias mappings upon fork.
> (A third option would be kernel support for private alias mappings. A
> fourth, get some form of explicit JIT support for SELinux.)
Sounds like a vote for (4)
More information about the Libffi-discuss
mailing list