I learnt that we can use LD_PRELOAD
to preload open()
function to fake a path to a process.
I learnt it from here: Is it possible to fake a specific path for a process?
I am wondering if there is a command, which redirects a process' reading/writing file to another path? Like proxychains
, it uses LD_PRELOAD.