Hi,
This seems very close to what I was looking for. Thanks.
Just one more thing- is there any way of making the LD_PRELOAD associate with socket() calls from only a particular 'pid'. If I set the LD_PRELOAD environment variable for only one shell would it affect the socket calls which are initiated by other programs?
I only need to hijack socket calls() emanating from a particular pid.
Just run said application like so:
LD_PRELOAD=mylib.so app_name
This will make the LD_PRELOAD env variable in effect for that proccess life and and that's all.
Cheers, Gilad
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html