Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Intercepting file system calls (read, write, open, close, etc)




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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.