Lines Matching defs:ctx
62 struct cat_attr * cap, struct vfs_context *ctx);
72 static u_int32_t hfs_real_user_access(vnode_t vp, vfs_context_t ctx);
430 struct vfs_context *ctx)
435 packcommonattr(abp, hfsmp, vp, descp, attrp, ctx);
538 struct vfs_context * ctx)
544 boolean_t is_64_bit = proc_is64bit(vfs_context_proc(ctx));
549 cuid = kauth_cred_getuid(vfs_context_ucred(ctx));
713 gid_t cgid = kauth_cred_getgid(vfs_context_ucred(ctx));
1026 hfs_real_user_access(vnode_t vp, vfs_context_t ctx)
1031 if (vnode_authorize(vp, NULLVP, KAUTH_DIR_WRITE_RIGHTS, ctx) == 0)
1033 if (vnode_authorize(vp, NULLVP, KAUTH_DIR_READ_RIGHTS, ctx) == 0)
1035 if (vnode_authorize(vp, NULLVP, KAUTH_DIR_EXECUTE_RIGHTS, ctx) == 0)
1038 if (vnode_authorize(vp, NULLVP, KAUTH_FILE_WRITE_RIGHTS, ctx) == 0)
1040 if (vnode_authorize(vp, NULLVP, KAUTH_FILE_READRIGHTS, ctx) == 0)
1042 if (vnode_authorize(vp, NULLVP, KAUTH_FILE_EXECUTE_RIGHTS, ctx) == 0)