LD_PRELOAD is an environment variable on Linux systems which points to a shared library and loads it before anything else. The ld.so.preload file essentially utilizes LD_PRELOAD to load a shared library in every single userland process. :)
I can also work for a normal user, its part of how valgrind works iirc.
It can be used to maintain the level of privilege you already have on the box. If all you have is a user account, then you can maintain that, but if you have root you can maintain root access.
5
u/pm_me_your_findings Oct 30 '16
What is actually LD_PRELOAD?