public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v8 0/11] implement dlmem() function
@ 2023-03-17  6:31 Stas Sergeev
  2023-03-17  6:32 ` [PATCH 01/11] elf: strdup() l_name if no realname [BZ #30100] Stas Sergeev
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Stas Sergeev @ 2023-03-17  6:31 UTC (permalink / raw)
  To: libc-alpha; +Cc: Stas Sergeev

Changes in v8:
- drop audit machinery and instead add an extra arg (optional pointer
  to a struct) to dlmem() itself that allows to install a custom premap
  callback or to specify nsid. Audit machinery was meant to allow
  controling over the pre-existing APIs like dlopen(), but if someone
  ever needs such extensions to dlopen(), he can trivially implement
  dlopen() on top of dlmem().

Changes in v7:
- add _dl_audit_premap audit extension and its usage example

Changes in v6:
- use __strdup("") for l_name as suggested by Andreas Schwab

Changes in v5:
- added _dl_audit_premap_dlmem audit extension for dlmem
- added tst-auditmod-dlmem.c test-case that feeds shm fd to dlmem()

Changes in v4:
- re-target to GLIBC_2.38
- add tst-auditdlmem.c test-case to test auditing
- drop length page-aligning in tst-dlmem: mmap() aligns length on its own
- bugfix: in do_mmapcpy() allow mmaps past end of buffer

Changes in v3:
- Changed prototype of dlmem() (and all the internal machinery) to
  use "const unsigned char *buffer" instead of "const char *buffer".

Changes in v2:
- use <support/test-driver.c> instead of "../test-skeleton.c"
- re-target to GLIBC_2.37
- update all libc.abilist files

-- 
2.37.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-03-17  6:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17  6:31 [PATCH v8 0/11] implement dlmem() function Stas Sergeev
2023-03-17  6:32 ` [PATCH 01/11] elf: strdup() l_name if no realname [BZ #30100] Stas Sergeev
2023-03-17  6:32 ` [PATCH 02/11] elf: switch _dl_map_segment() to anonymous mapping Stas Sergeev
2023-03-17  6:32 ` [PATCH 03/11] elf: dont pass fd to _dl_process_pt_xx Stas Sergeev
2023-03-17  6:32 ` [PATCH 04/11] elf: split _dl_map_object_from_fd() into reusable parts Stas Sergeev
2023-03-17  6:32 ` [PATCH 05/11] elf: split open_verify() " Stas Sergeev
2023-03-17  6:32 ` [PATCH 06/11] elf: load elf hdr fully in open_verify() Stas Sergeev
2023-03-17  6:32 ` [PATCH 07/11] elf: convert pread64 to callback in do_open_verify() Stas Sergeev
2023-03-17  6:32 ` [PATCH 08/11] elf: convert _dl_map_segments's mmap() to a callback Stas Sergeev
2023-03-17  6:32 ` [PATCH 09/11] elf: call _dl_map_segment() via premap callback Stas Sergeev
2023-03-17  6:32 ` [PATCH 10/11] elf: convert _dl_map_object to a callback Stas Sergeev
2023-03-17  6:32 ` [PATCH 11/11] dlfcn,elf: implement dlmem() [BZ #11767] Stas Sergeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).