Lines Matching defs:action
4611 static int vnode_authorize_callback(kauth_cred_t credential, void *idata, kauth_action_t action,
4613 static int vnode_authorize_callback_int(__unused kauth_cred_t credential, __unused void *idata, kauth_action_t action,
4655 vnode_authorize(vnode_t vp, vnode_t dvp, kauth_action_t action, vfs_context_t ctx)
4667 result = kauth_authorize_action(vnode_scope, vfs_context_ucred(ctx), action,
4847 * may perform (action)
4850 vnode_authorize_posix(vauth_ctx vcp, int action, int on_dir)
4878 if (action & VREAD)
4880 if (action & VWRITE)
4882 if (action & VEXEC)
4888 if (action & VREAD)
4890 if (action & VWRITE)
4892 if (action & VEXEC)
4898 if (action & VREAD)
4900 if (action & VWRITE)
4902 if (action & VEXEC)
4963 (action & VREAD) ? "r" : "-",
4964 (action & VWRITE) ? "w" : "-",
4965 (action & VEXEC) ? "x" : "-",
5354 vnode_authorize_opaque(vnode_t vp, int *resultp, kauth_action_t action, vfs_context_t ctx)
5376 if ((action & KAUTH_VNODE_ACCESS) && !vfs_authopaqueaccess(vp->v_mount))
5383 if ((error = VNOP_ACCESS(vp, action, ctx)) != ENOTSUP) {
5393 if ((action & KAUTH_VNODE_EXECUTE) && (vp->v_type == VREG)) {
5433 vnode_authorize_callback(kauth_cred_t cred, void *idata, kauth_action_t action,
5448 * combined action being passed in... defer until later...
5464 if (vnode_cache_is_authorized(cvp, ctx, action) == TRUE)
5467 result = vnode_authorize_callback_int(cred, idata, action, arg0, arg1, arg2, arg3);
5470 vnode_cache_authorized_action(cvp, ctx, action);
5477 vnode_authorize_callback_int(__unused kauth_cred_t unused_cred, __unused void *idata, kauth_action_t action,
5519 (action & KAUTH_VNODE_ACCESS) ? "access" : "auth",
5520 (action & KAUTH_VNODE_READ_DATA) ? vnode_isdir(vp) ? " LIST_DIRECTORY" : " READ_DATA" : "",
5521 (action & KAUTH_VNODE_WRITE_DATA) ? vnode_isdir(vp) ? " ADD_FILE" : " WRITE_DATA" : "",
5522 (action & KAUTH_VNODE_EXECUTE) ? vnode_isdir(vp) ? " SEARCH" : " EXECUTE" : "",
5523 (action & KAUTH_VNODE_DELETE) ? " DELETE" : "",
5524 (action & KAUTH_VNODE_APPEND_DATA) ? vnode_isdir(vp) ? " ADD_SUBDIRECTORY" : " APPEND_DATA" : "",
5525 (action & KAUTH_VNODE_DELETE_CHILD) ? " DELETE_CHILD" : "",
5526 (action & KAUTH_VNODE_READ_ATTRIBUTES) ? " READ_ATTRIBUTES" : "",
5527 (action & KAUTH_VNODE_WRITE_ATTRIBUTES) ? " WRITE_ATTRIBUTES" : "",
5528 (action & KAUTH_VNODE_READ_EXTATTRIBUTES) ? " READ_EXTATTRIBUTES" : "",
5529 (action & KAUTH_VNODE_WRITE_EXTATTRIBUTES) ? " WRITE_EXTATTRIBUTES" : "",
5530 (action & KAUTH_VNODE_READ_SECURITY) ? " READ_SECURITY" : "",
5531 (action & KAUTH_VNODE_WRITE_SECURITY) ? " WRITE_SECURITY" : "",
5532 (action & KAUTH_VNODE_CHANGE_OWNER) ? " CHANGE_OWNER" : "",
5533 (action & KAUTH_VNODE_NOIMMUTABLE) ? " (noimmutable)" : "",
5535 vp->v_name ? vp->v_name : "<NULL>", action, vp, dvp);
5538 * Extract the control bits from the action, everything else is
5541 noimmutable = (action & KAUTH_VNODE_NOIMMUTABLE) ? 1 : 0;
5542 rights = action & ~(KAUTH_VNODE_ACCESS | KAUTH_VNODE_NOIMMUTABLE);
5587 if ((vp->v_mount->mnt_kern_flag & MNTK_AUTH_OPAQUE) && vnode_authorize_opaque(vp, &result, action, ctx))