Shared libraries auto load when app starts up
I am using Linux OS ... my application XYZ uses shared libraries libA.so, and libB.so.
When application XYZ is started .... the libA.so and libB.so are loaded automatically (given that the env variable LD_LIBRARY_PATH is properly set) ...
If I want to validate the integrity of these libs before they are loaded, how am I going to do about that?
I understand that if I explicitly call dlopen in my C/C++ app, I can write wrappter to the dlopen to validate the libraries before calling the actual dlopen ...
But in the case of auto loading shared libraries at startup time, do I need to do anything with kernel for this purpose or how can I do this?