RE: argument defs for vnode scope callbacks
RE: argument defs for vnode scope callbacks
- Subject: RE: argument defs for vnode scope callbacks
- From: "Pezeshgi, Shahriar" <email@hidden>
- Date: Tue, 10 May 2005 17:08:05 -0400
- Thread-topic: argument defs for vnode scope callbacks
Nicolas
I'm trying to use vnode_getattr but I can't load the driver. It says
vnode_getattr not found, can you tell me what did you put in CFOSBundle?
Shahriar
-----Original Message-----
Sent: Tuesday, May 10, 2005 4:49 PM
To: email@hidden
Subject: argument defs for vnode scope callbacks
Hello !
thanks to mike, I've started to get going with my vnode scope handler.
I've installed handlers for file and vnode scope listening.
kauth.h has some definitions for the file scope, but is really zen about
the vnode part (ie empty). It says "Prototype for vnode_authorize is in
vnode.h", but I cannot find a list of actions and their related
arguments.
Is it documented ?
I've tried with mike's following suggestion :
int vnode_callback(kauth_cred_t cred, void *my_private_data_p,
kauth_action_t action,
uintptr_t arg0, uintptr_t arg1, uintptr_t arg2,
uintptr_t arg3) {
vfs_context_t ctx = (vfs_context_t )arg0;
vnode_t vp = (vnode_t)arg1;
vnode_t dvp = (vnode_t)arg2;
int *errorp = (int *)arg3;
I then tried to get some attributes from the vp vnode, but I got
instant-KP out of it :
struct vnode_attr vap;
int err = vnode_getattr(vp, &vap, ctx);
any suggestions are welcome.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
0analog.com
This email sent to email@hidden
_______________________________________________
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