[PATCH 2/2] dlfcn,elf: implement dlmem() function [BZ #11767]

stsp stsp2@yandex.ru
Wed Feb 15 11:30:14 GMT 2023


Hi,

14.02.2023 14:51, Florian Weimer пишет:
> * Stas Sergeev via Libc-alpha:
>
> With the mandatory copy, I'm not sure if this is a substantial
> improvement over the pedestrian implementation using memfd_create,
> included below.
I posted v5 where I added _dl_audit_premap_dlmem
audit extension for dlmem. It allows (with the demo
test-case) to feed an fd to dlmem().
Obviously you can't do anything like this with the
APIs that already have or use an fd.

Note: this isn't the only extension that I need.
I just wanted to add them later. But to demonstrate
you the advantage of dlmem(), I had to add one
of them directly to v5.



More information about the Libc-alpha mailing list