[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wrapping glibc connect/accept functions
From: |
Toby Murray |
Subject: |
wrapping glibc connect/accept functions |
Date: |
Fri, 27 Jun 2003 15:11:53 +0930 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 |
Hi,
I'm working on a project in which we require the socket functions
(specifically: connect, accept, read, write, and the others for reading
and writing TCP sockets etc.) to be wrapped by code for authentication.
the platform is Linux kernel using the glibc libraries.
This wrapping needs to be done at the userlevel, (besides I don't have
the inclination to mess with the implementation of these functions in
the kernel).
I believe that these functions (which under Linux just make the
socketcall system call) are provided by glibc but can't actually find
the code for them in the glibc source (I'm using version 2.2.93)
Whereabouts in the glibc source is the actual implementation of these
functions that then goes and makes the system call? - I don't want to
modify these functions, merely rename them and create an identical
wrapper to do some extra processing...
I've spent about the last two hours looking but can't actually find the
file in which the (for example)
int connect(.... params etc ...){
..body etc...
}
exists within the glibc source...
can you help me out?
thanks alot
Toby
--
Toby Murray
Advanced Computer Capabilities Unit
Information Networks Division
Defence Science and Technology Organisation
Edinburgh, South Australia
Phone: (08) 8259 4134
Email: address@hidden
IMPORTANT: This e-mail remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the
Crimes Act 1914. If you have received this e-mail in error, you are
requested to contact the sender and delete the e-mail.
- wrapping glibc connect/accept functions,
Toby Murray <=