[LTP] [PATCH v2 09/11] Add landlock04 test

Cyril Hrubis chrubis@suse.cz
Thu Jul 11 13:01:52 CEST 2024


Hi!
> The only library we need is libc.so, which is usually installed in /lib 
> or /lib64. I don't really know if LTP supported distros which place libc 
> somewhere else.
> Do you have suggestions on how to get shared-libs eventually? Because 
> the only way I know is to call dladdr() but it doesn't seem the way to 
> go (I obtain the current binary file)

I guess that you can parse /proc/self/maps to get paths to currenlty
loaded so files.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list