Re: Intercepting file system calls (read, write, open, close, etc)
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Nov 15, 2004, at 12:04 PM, darwin-dev-request@lists.apple.com wrote: = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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 This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Smith