argument defs for vnode scope callbacks
argument defs for vnode scope callbacks
- Subject: argument defs for vnode scope callbacks
- From: Nicolas Berloquin <email@hidden>
- Date: Tue, 10 May 2005 22:49:10 +0200
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:
This email sent to email@hidden