Re: Getting vnode from filename?
Re: Getting vnode from filename?
- Subject: Re: Getting vnode from filename?
- From: Michael Smith <email@hidden>
- Date: Fri, 22 Jun 2007 09:44:15 -0700
On Jun 21, 2007, at 4:57 PM, Greg wrote:
On Jun 21, 2007, at 3:47 AM, Michael Smith wrote:
In what context?
I'm using this in conjunction with a kauth listener, although it
seems that it might not be necessary because the path that's given
to it seems to be the absolute path of the file regardless of
whether or not a symbolic link was used to access it.
I assume you are referring to the fileop scope? Many of the paths
that are passed to this scope are not necessarily viable candidates
for lookup; for example the 'from' name for rename is gone by the
time the kauth handler runs.
There seems to be zero documentation on this, and the header
file (vnode.h) is not very helpful. There is an interesting
sounding function called "vnode_lookup" that I found in there,
but I can't find any documentation on how to use it.
You can find many examples of its use throughout the xnu sources.
Do you know of any specific files that contain example usage of it?
'man cscope'
= 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