You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check if the pid is set; if so find the lib in the proc maps
Check if an absolute path is provided; if so assume that the path is to a binary/library path
Otherwise, fallback to looking up a dynamic library in ld.so.cache
However, the use of ld.so.cache is specific to glibc. Even though Aya can be compiled to musl targets, this prevents using uprobes with dynamic library resolution in non-glibc environments, such as Alpine.
Improve the uprobe dynamic library path resolution to be glibc-agnostic.
This will likely involve searching for the provided dynamic library in PATH ourselves, instead of relying ld.so.cache.
The text was updated successfully, but these errors were encountered:
Currently, when you provide Aya a target to attach a
uprobe
to, it has the following resolution strategy:aya/aya/src/programs/uprobe.rs
Line 112 in 5a43bed
pid
is set; if so find the lib in theproc
mapsld.so.cache
However, the use of
ld.so.cache
is specific toglibc
. Even though Aya can be compiled tomusl
targets, this prevents usinguprobe
s with dynamic library resolution in non-glibc
environments, such as Alpine.Improve the
uprobe
dynamic library path resolution to beglibc
-agnostic.This will likely involve searching for the provided dynamic library in
PATH
ourselves, instead of relyingld.so.cache
.The text was updated successfully, but these errors were encountered: