public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/azanella/mseal] FIX LD_PRELOAD Date: Tue, 4 Jun 2024 13:22:33 +0000 (GMT) [thread overview] Message-ID: <20240604132233.635D0390D989@sourceware.org> (raw) 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;
reply other threads:[~2024-06-04 13:22 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240604132233.635D0390D989@sourceware.org \ --to=azanella@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).