• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching defs:result

4657 	int	error, result;
4667 result = kauth_authorize_action(vnode_scope, vfs_context_ucred(ctx), action,
4669 if (result == EPERM) /* traditional behaviour */
4670 result = EACCES;
4672 if ((result != 0) && (error != 0))
4674 return(result);
4718 int result;
4721 result = 0;
4727 result = (vap->va_uid == kauth_cred_getuid(cred)) ? 1 : 0;
4731 return(result);
4738 int result;
4741 result = 0;
4745 error = kauth_cred_ismember_gid(cred, vap->va_gid, &result);
4750 *ismember = result;
4757 int result;
4760 result = (vcp->flags & _VAC_IS_OWNER) ? 1 : 0;
4762 result = vauth_node_owner(vcp->vap, vcp->ctx->vc_ucred);
4764 /* cache our result */
4766 if (result) {
4772 return(result);
4787 /* cache our result */
4803 int result;
4806 result = (vcp->flags & _VAC_IS_DIR_OWNER) ? 1 : 0;
4808 result = vauth_node_owner(vcp->dvap, vcp->ctx->vc_ucred);
4810 /* cache our result */
4812 if (result) {
4818 return(result);
4833 /* cache our result */
4953 /* Not owner, not in group, use world result */
5374 * we will attempt to formulate a result ourselves based on VNOP_GETATTR data.
5439 int result;
5467 result = vnode_authorize_callback_int(cred, idata, action, arg0, arg1, arg2, arg3);
5469 if (result == KAUTH_RESULT_ALLOW && cvp != NULLVP)
5472 return result;
5487 int result;
5569 result = EROFS;
5577 result = EACCES;
5585 * an appropriate result, at which point we can return immediately.
5587 if ((vp->v_mount->mnt_kern_flag & MNTK_AUTH_OPAQUE) && vnode_authorize_opaque(vp, &result, action, ctx))
5599 if ((result = vnode_getattr(vp, &va, ctx)) != 0) {
5600 KAUTH_DEBUG("%p ERROR - failed to get vnode attributes - %d", vp, result);
5609 if ((result = vnode_getattr(dvp, &dva, ctx)) != 0) {
5610 KAUTH_DEBUG("%p ERROR - failed to get directory vnode attributes - %d", vp, result);
5646 if ((result = vnode_getattr(vp, &va, ctx)) != 0)
5656 if ((result = vnode_authorize_checkimmutable(vp, &va, rights, noimmutable)) != 0)
5660 ((result = vnode_authorize_checkimmutable(dvp, &dva, KAUTH_VNODE_DELETE_CHILD, 0)) != 0))
5679 ((result = vnode_authorize_delete(vcp, parent_authorized_for_delete_child)) != 0))
5684 (result = vnode_authorize_simple(vcp, rights, rights & KAUTH_VNODE_DELETE, &found_deny)) != 0)
5696 result = EPERM;
5709 if (result) {
5712 *errorp = result;
5737 * 'result' value.