Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux LD_PRELOAD/LD_AUDIT library: 32-bit support #27

Open
noproto opened this issue Oct 13, 2021 · 0 comments
Open

Linux LD_PRELOAD/LD_AUDIT library: 32-bit support #27

noproto opened this issue Oct 13, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@noproto
Copy link
Collaborator

noproto commented Oct 13, 2021

Tracking issue for supporting la_symbind32 on Linux platforms

man 7 rtld-audit:

   la_symbind*()

       uintptr_t la_symbind32(Elf32_Sym *sym, unsigned int ndx,
                              uintptr_t *refcook, uintptr_t *defcook,
                              unsigned int *flags, const char *symname);

       The dynamic linker invokes one of these functions when a symbol binding occurs between two shared objects that have been marked for auditing notification by la_objopen().  The la_symbind32()
       function is employed on 32-bit platforms; the la_symbind64() function is employed on 64-bit platforms.

(..)

       The  return value of la_symbind32() and la_symbind64() is the address to which control should be passed after the function returns.  If the auditing library is simply monitoring symbol bind‐
       ings, then it should return sym->st_value.  A different value may be returned if the library wishes to direct control to an alternate location.

https://man7.org/linux/man-pages/man7/rtld-audit.7.html
https://linux.die.net/man/7/rtld-audit

@noproto noproto added the enhancement New feature or request label Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant