public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Farid Zakaria <fmzakari@ucsc.edu>
To: Libc-help <libc-help@sourceware.org>
Subject: Can I use la_symbind to change the shared object file where it's binded?
Date: Thu, 6 Oct 2022 10:05:38 -0700	[thread overview]
Message-ID: <CAH4OOv62xN=WXUC8qCXDOwr_6Ejme9HS-rag0xjViqHzEhJYtQ@mail.gmail.com> (raw)

Hello!

I am looking to see if I can replicate LD_PRELOAD using la_symbind in
the rltd-audit API.

I would like to provide the audit API a: symbol -> shared object file
(perhaps with offset) and have the audit API override it.

Is this possible?
I am thinking perhaps I can dlopen the file in the audit method and
then use dlsym as well.

(Hopefully this question makes sense and appreciate any advice)

             reply	other threads:[~2022-10-06 17:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-06 17:05 Farid Zakaria [this message]
2022-10-10  8:43 ` Florian Weimer

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='CAH4OOv62xN=WXUC8qCXDOwr_6Ejme9HS-rag0xjViqHzEhJYtQ@mail.gmail.com' \
    --to=fmzakari@ucsc.edu \
    --cc=libc-help@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: link
Be 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).