looking for a dlopen()-like code which takes file image
From: Michael Y (michael.yeeNOSPAM_at_rogers.com)
Date: 01/20/05
- Next message: Pete Zaitcev (OTID3): "Re: usb flash drive support"
- Previous message: Stein Gjoen: "Re: The test source code"
- Next in thread: Paul Pluzhnikov: "Re: looking for a dlopen()-like code which takes file image"
- Reply: Paul Pluzhnikov: "Re: looking for a dlopen()-like code which takes file image"
- Reply: Basile Starynkevitch [news]: "Re: looking for a dlopen()-like code which takes file image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Jan 2005 14:55:57 -0500
Hi,
I'm looking for user-level code akin to dlopen() which takes file image
bytes, instead of a file path. For example:
void *dlopen(unsigned char *image, int mode);
This would be very similar to "userland exec", an execve()-like
implementation which takes image bytes instead of the file path:
void ul_exec(void *ELF_buf, int argc, char **argv, char **envp);
For details on userland exec, see
http://lists.netsys.com/pipermail/full-disclosure/2004-January/015143.html
How would this be implemented? mmap()'ing the segments, relocations,
opening dependencies, etc. are things that need to performed. I'm hoping
any good documents or source code out there would be more helpful than
looking directly at the dlopen() implementation.
Thanks.
- Next message: Pete Zaitcev (OTID3): "Re: usb flash drive support"
- Previous message: Stein Gjoen: "Re: The test source code"
- Next in thread: Paul Pluzhnikov: "Re: looking for a dlopen()-like code which takes file image"
- Reply: Paul Pluzhnikov: "Re: looking for a dlopen()-like code which takes file image"
- Reply: Basile Starynkevitch [news]: "Re: looking for a dlopen()-like code which takes file image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|