Re: interception of file system function calls...
Re: interception of file system function calls...
- Subject: Re: interception of file system function calls...
- From: Quinn <email@hidden>
- Date: Thu, 24 Jan 2008 15:32:45 +0000
At 7:23 -0500 24/1/08, Jonathan Bringhurst wrote:
Perhaps http://rentzsch.com/mach_override/ may help.
Please don't use this technique in products that you intend to deploy
to end users. It's fine for developer tools and hacks, but it's not
appropriate for shrink wrap software.
At 16:10 +0100 24/1/08, lh wrote:
What about the approach used by libtrash? I think they use
LD_PRELOAD to override the unlink and rename functions with own
ones. This is DYLD_INSERT_LIBRARIES when i'm assuming right?
Yes.
However, there are a number of issues with this:
A. It requires you to do dyld interposing. While this technology is
fairly well documented on the web, it's not considered a supported
technology.
B. There's no really good way to set environment variables for all processes.
C. DYLD_INSERT_LIBRARIES is ignored by privileged programs.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden