Re: Forcing a connection from a particular NIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rss26@njit.edu wrote:
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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux