public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/mseal] FIX LD_PRELOAD
@ 2024-06-04 13:22 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2024-06-04 13:22 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c20773d8e7adc0421c34b223435a3434eeb53a1d

commit c20773d8e7adc0421c34b223435a3434eeb53a1d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Jun 4 09:23:40 2024 -0300

    FIX LD_PRELOAD

Diff:
---
 elf/rtld.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elf/rtld.c b/elf/rtld.c
index 2dc257e0dc..174389e205 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -811,7 +811,8 @@ do_preload (const char *fname, struct link_map *main_map, const char *where)
 
   args.str = fname;
   args.loader = main_map;
-  args.mode = __RTLD_SECURE;
+  /* RTLD_NODELETE enables sealing.  */
+  args.mode = __RTLD_SECURE | RTLD_NODELETE;
 
   unsigned int old_nloaded = GL(dl_ns)[LM_ID_BASE]._ns_nloaded;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-04 13:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 13:22 [glibc/azanella/mseal] FIX LD_PRELOAD Adhemerval Zanella

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).