site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hello ! 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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 : This email sent to site_archiver@lists.apple.com