Lines Matching refs:vnode_authorize
495 if ((error = vnode_authorize(devvp, NULL, accessmode, ctx)) != 0)
543 if ((error = vnode_authorize(device_vnode, NULL,
1848 error = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx);
2036 * vnode_authorize:??? [anything vnode_authorize can return]
2062 error = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx);
2414 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0)
2464 * vnode_authorize:???
2497 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0)
2588 * vnode_authorize:???
2655 if ((error = vnode_authorize(vp, NULL, KAUTH_VNODE_LINKTARGET, ctx)) != 0)
2670 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0)
2805 error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx);
2986 error = vnode_authorize(vp, ndp->ni_dvp, KAUTH_VNODE_DELETE, ctx);
3185 * vnode_authorize:???
3195 * that vnode_authorize will understand.
3230 error = vnode_authorize(vp, dvp, action | KAUTH_VNODE_ACCESS, ctx);
3449 /* need parent for vnode_authorize for deletion test */
3536 /* need parent for vnode_authorize for deletion test */
3867 error = vnode_authorize(vp, NULL, KAUTH_VNODE_READ_DATA, ctx);
3904 if (action && ((error = vnode_authorize(vp, NULL, action | KAUTH_VNODE_NOIMMUTABLE, ctx)) != 0))
3976 * vnode_authorize:??? [anything vnode_authorize can return]
3979 * Notes: If vnode_authattr or vnode_authorize return EACCES, it will be
4006 ((error = vnode_authorize(vp, NULL, action, ctx)) != 0)) {
4235 if (action && ((error = vnode_authorize(vp, NULL, action, ctx)) != 0))
4312 if (action && ((error = vnode_authorize(vp, NULL, action, ctx)) != 0)) {
4392 if ((action != 0) && ((error = vnode_authorize(vp, NULL, action, ctx)) != 0)) {
4506 if ((action != 0) && ((error = vnode_authorize(vp, NULL, action, ctx)) != 0))
4668 if ((error = vnode_authorize(tdvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0)
4836 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE | KAUTH_VNODE_ADD_SUBDIRECTORY, ctx)) != 0)
4839 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE, ctx)) != 0)
4844 if ((error = vnode_authorize(((tvp != NULL) && vnode_isdir(tvp)) ? tvp : tdvp,
4860 if ((error = vnode_authorize(fdvp, NULL,
4866 ((error = vnode_authorize(tvp, tdvp, KAUTH_VNODE_DELETE, ctx)) != 0)) {
5271 * vnode_authorize:???
5308 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_SUBDIRECTORY, ctx)) != 0)
5440 error = vnode_authorize(vp, nd.ni_dvp, KAUTH_VNODE_DELETE, ctx);
5999 if ((error = vnode_authorize(vp, NULL, action, ctx)) == 0) {
6096 if (((error = vnode_authorize(fvp, NULL, KAUTH_VNODE_READ_DATA | KAUTH_VNODE_WRITE_DATA, ctx)) != 0) ||
6097 ((error = vnode_authorize(svp, NULL, KAUTH_VNODE_READ_DATA | KAUTH_VNODE_WRITE_DATA, ctx)) != 0))