[10579] in bugtraq

home help back first fref pref prev next nref lref last post

Re: LD_PRELOAD: Clarification

daemon@ATHENA.MIT.EDU (John Daniele)
Wed May 19 15:05:09 1999

Content-Identifier: 0320137419017187
Content-Return: Allowed
Mime-Version: 1.0
Message-Id: <0320137419017187*/c=ca/admd=CONCERT/prmd=kpmg/o=noteServer/s=Daniele/g=John/@MHS>
Date: 	Tue, 18 May 1999 12:06:47 -0400
Reply-To: John Daniele <JDaniele@KPMG.CA>
From: John Daniele <JDaniele@KPMG.CA>
To: BUGTRAQ@NETSPACE.ORG

Barnett wrote:
> cc    -o rollover rollover.c
> "rollover.c", line 75: undefined symbol: PTRACE_PEEKUSR
> "rollover.c", line 77: undefined symbol: EBX
> cc: acomp failed for rollover.c
> *** Error code 2
> Solaris 2.6
> What OS is your program for?

In response to similar emails rev'd, I was sitting in front of a linux box at
the
time of the LD_PRELOAD posting, thus my code reflects this. However, Solaris
2.6 should support PTRACE_PEEKUSR as this was favoured over PTRACE_READDATA
in 2.5 I believe (correct me if I'm wrong). In any case, look at <sys/ptrace.h>
for valid request types. The value of EBX is defined in <asm/ptrace.h> and is 0.
If all else fails, you can always issue ioctl routines on a process within the
/proc filesystem ;)

										John
Daniele
										jdaniele@kpmg.ca
										VOX:
(416) 777-3759

home help back first fref pref prev next nref lref last post