Re: Intercepting file system calls (read, write, open, close, etc)
Re: Intercepting file system calls (read, write, open, close, etc)
- Subject: Re: Intercepting file system calls (read, write, open, close, etc)
- From: Mike Smith <email@hidden>
- Date: Mon, 15 Nov 2004 22:36:21 -0800
On Nov 15, 2004, at 12:04 PM, email@hidden wrote:
I would like to implement a OSX file system calls interception.
(read, write, open, close, etc)
I would like to have full control so I can overwrite these calls or
let the system handle them.
I have looked at all the Apple's OSX kext device examples but did not
find what I was looking for.
OSX 10.3, Xcode 1.5
PS - my implementation does not have to be wide, it can be
application based
Any advice, help, pointers, sample projects. etc would be much
appreciated.
Your best bet for this will be to override the various library calls at
the application level;
all applications ultimately call through libSystem.
The dyld manpage describes inserting libraries into the runtime link
order; within your
override functions you can then call through into the covered functions
(this is the utility
of the two-level namespace).
http://developer.apple.com/releasenotes/DeveloperTools/
TwoLevelNamespaces.html
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden