I am trying to use LD_PRELOAD to preload a library with an application that has setuid permissions. Tried LD_PRELOAD at first, and it seemed like i
LD_PRELOAD
Install your lib as such:
Make sure LD_PRELOAD is exported to your environment
$ export LD_PRELOAD=/usr/lib/yourlib.so $ env | grep LD_PRELOAD # verify
Then run your program.