Re: Accessing vnode operations
Re: Accessing vnode operations
- Subject: Re: Accessing vnode operations
- From: Michael Smith <email@hidden>
- Date: Wed, 25 Jul 2007 08:35:52 -0700
On Jul 25, 2007, at 2:23 AM, Jernej Azarija wrote: I'm using Kauth KAUTH_SCOPE_FILEOP to hook some file operations. The hook function is then supplied with a pointer to a vnode structure related to the given file operation. I'm now wondering, how can I use the v_op vector to call a specifc VFS function (concretely - getxattr() ).
As I noted yesterday, you are not permitted to do this. The v_op pointer is an internal implementation detail and there is currently no KPI for reading/writing extended attributes.
I've seen many options - using the macro VOPCALL, calling vn_getxattr() , but none of these works (I don't see how to use VOPCALL properly as I'm missing the second argument (undefined symbol), same problem with undefined symbols goes to vn_getxattr() ). Is somebody so kind to give me a pointer on how to use the vnode v_op vector in order to call the named function?
You don't. You are attempting to do work on a path where you are explicitly not supposed to be doing any work. Take the pathname you are supplied, pass it out to a userland component and do the work asynchronously there. = Mike
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden