Close

LD_PRELOAD hacks

This post is a bit of a departure from my normal Python evangelism. Instead, I’m going back to my C roots and exploring the somewhat mystical world of the LD_PRELOAD environment variable. TL;DR: LD_PELOAD is a (linux) variable you can set to hijack the symbol resolution order for linked libraries. First lets consider a basic…