[LTP] [PATCH v2 09/11] Add landlock04 test
Li Wang
liwang@redhat.com
Thu Jul 11 13:14:20 CEST 2024
On Thu, Jul 11, 2024 at 7:02 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> 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.
>
Yes, that will precisely show the current process load so files.
Also, we could find that via 'ldconfig -p' but that does not seem
more easier than parsing the maps.
--
Regards,
Li Wang
More information about the ltp
mailing list