2 ms·
Needing a LD_PRELOAD on a system where LD_PRELOAD is blocked. Sure it still requires you to have rights to create+run a executable. But it's a much better mod
by dathinab 6y ago
Needing a LD_PRELOAD on a system where LD_PRELOAD is blocked.
Sure it still requires you to have rights to create+run a executable.
But it's a much better model then LD_PRELOAD as it can only be used on executable you can write to, which normally means you your user/group but not other user/group owned executables. Which is especially relevant with suid/sgid.
You can also use this, to patch a library which is compiled in a way where LD_PRELOAD doesn't work. Like suid binaries. Through you have to potentially make a copy and set the suid bit again.
- 3v1n0 6y agoYeah, I've been using it to set rpath on some files that needed to be packaged in a particular way...