11-10-2008
5 More Discussions You Might Find Interesting
1. Linux
I have implemented an interposer for open() and open64() system call.
This interposer is implemented in interposer.c and I have compiled it in a shared library (libinterposer.so) using the following commands:
gcc -g -fPIC -s -o interposer.o -c interposer.c
gcc -s -g -shared -nostartfiles ... (0 Replies)
Discussion started by: Manish Mukherje
0 Replies
2. UNIX for Advanced & Expert Users
Hi,
What does LD_PRELOAD variable signify on HP-UX?
thanks in advance,
-Ashish (4 Replies)
Discussion started by: shriashishpatil
4 Replies
3. UNIX for Advanced & Expert Users
well i know what LD_PRELOAD is. Now suppose i have hooked a function XDrawString in the my library (Mylib.so.1) and then used the command
export LD_PRELOAD=/path/mylib.so.1
Now suppose i open Xeditor by typing 'xeditor' in the console, my library is geting used, so i knw that this applilcation is... (3 Replies)
Discussion started by: manchester
3 Replies
4. UNIX for Advanced & Expert Users
Dear Fellows;
As being new to linux, i have tried to synamically load a custom library which overrides some system calls like conncet(), socket() etc.... for custom purposes.
It works well, if declaring the environment path LD_PRELOAD and execution of the application to be override... (0 Replies)
Discussion started by: mzeeshan
0 Replies
5. Programming
I had it working but i screwed up something and now i get
me@mymachine:~$ LD_PRELOAD=/home/me/libf1.o ldd FCaller
ERROR: ld.so: object '/home/me/libf1.o' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/me/libf1.o' from LD_PRELOAD cannot be preloaded: ignored.
ERROR:... (3 Replies)
Discussion started by: NetworkLearning
3 Replies
LEARN ABOUT CENTOS
tsocks
TSOCKS(1) General Commands Manual TSOCKS(1)
NAME
tsocks - Shell wrapper to simplify the use of the tsocks(8) library to transparently allow an application to use a SOCKS proxy
SYNOPSIS
tsocks [application [application's arguments]]
or tsocks [-on|-off]
or tsocks
DESCRIPTION
tsocks is a wrapper between the tsocks library and the application what you would like to run socksified.
OPTIONS
[application [application's arguments]]
run the application as specified with the environment (LD_PRELOAD) set such that tsocks(8) will transparently proxy SOCKS connec-
tions in that program
[-on|-off]
this option adds or removes tsocks(8) from the LD_PRELOAD environment variable. When tsocks(8) is in this variable all executed
applications are automatically socksified. If you want to use this function, you HAVE to source the shell script from yours, like
this: "source /usr/bin/tsocks" or ". /usr/bin/tsocks"
Example:
". tsocks -on" -- add the tsocks lib to LD_PRELOAD (don't forget the leading dot!)
". tsocks -off" -- remove the tsocks lib from LD_PRELOAD (don't forget the leading dot!)
[-show|-sh]
show the current value of the LD_PRELOAD variable
<without any argument>
create a new shell with LD_PRELOAD including tsocks(8).
SEE ALSO
tsocks.conf(5) tsocks(8)
AUTHOR
This script was created by Tamas SZERB <toma@rulez.org> for the debian package of tsocks. It (along with this manual page) have since been
adapted into the main tsocks project and modified.
TSOCKS
TSOCKS(1)