Home
last modified time | relevance | path

Searched refs:vnode_authorize (Results 1 – 17 of 17) sorted by relevance

/xnu-11215/bsd/vfs/
H A Dvfs_attrlist.c1360 if (vnode_authorize(vp, NULL, in getvolattrlist()
1367 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_SEARCH, ctx) == 0) { in getvolattrlist()
1377 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_EXECUTE, ctx) == 0) { in getvolattrlist()
1828 if (vnode_authorize(vp, NULL, in attr_pack_common()
1835 if (vnode_authorize(vp, NULL, in attr_pack_common()
1841 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | in attr_pack_common()
1846 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | in attr_pack_common()
1854 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_EXECUTE, ctx) == 0) { in attr_pack_common()
3269 if ((error = vnode_authorize(vp, NULL, action, ctx)) != 0) { in getattrlist_internal()
4188 error = vnode_authorize(dvp, NULL, action, ctx); in getattrlistbulk()
[all …]
H A Dvfs_syscalls.c1535 (error = vnode_authorize(device_vnode, NULL, in mount_common()
2151 if ((error = vnode_authorize(vp, NULL, accessmode, ctx)) != 0) { in authorize_devpath_and_update_mntfromname()
4208 error = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx); in fchdir()
4606 error = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx); in change_dir()
6010 error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx); in symlinkat_internal()
6656 error = vnode_authorize(vp, dvp, action | KAUTH_VNODE_ACCESS, ctx); in access1()
7498 error = vnode_authorize(vp, NULL, KAUTH_VNODE_READ_DATA, in readlinkat_internal()
7753 ((error = vnode_authorize(vp, NULL, action, ctx)) != 0)) { in chmod_vnode()
8820 if ((error = vnode_authorize(tdvp, NULL, action, ctx))) { in clonefile_internal()
8828 if ((error = vnode_authorize(fvp, NULL, action, ctx))) { in clonefile_internal()
[all …]
H A Dvfs_subr.c8262 error = vnode_authorize(vp, dvp, KAUTH_VNODE_DELETE, ctx); in vn_authorize_unlink()
8367 error = vnode_authorize(vp, NULL, action, ctx); in vn_authorize_open_existing()
8416 return vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx); in vn_authorize_create()
8588 error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE | f, ctx); in vn_authorize_renamex_with_paths()
8598 error = vnode_authorize(tvp, tdvp, KAUTH_VNODE_DELETE | t, ctx); in vn_authorize_renamex_with_paths()
8605 error = vnode_authorize(fdvp, NULL, f | t, ctx); in vn_authorize_renamex_with_paths()
8607 error = vnode_authorize(fdvp, NULL, t, ctx); in vn_authorize_renamex_with_paths()
8611 error = vnode_authorize(tdvp, NULL, f, ctx); in vn_authorize_renamex_with_paths()
8644 if ((error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE, ctx)) != 0) { in vn_authorize_renamex_with_paths()
8658 if ((error = vnode_authorize(fdvp, NULL, in vn_authorize_renamex_with_paths()
[all …]
H A Dvfs_vnops.c790 return vnode_authorize(vp, NULL, action, context); in vn_access()
1663 …if ((error = vnode_authorize(vp, NULL, KAUTH_VNODE_READ_ATTRIBUTES | KAUTH_VNODE_READ_SECURITY, ct… in vn_stat()
H A Dvfs_xattr.c158 if ((error = vnode_authorize(vp, NULL, KAUTH_VNODE_READ_EXTATTRIBUTES, context))) { in vn_getxattr()
212 error = vnode_authorize(vp, NULL, KAUTH_VNODE_WRITE_EXTATTRIBUTES, context); in vn_setxattr()
304 error = vnode_authorize(vp, NULL, KAUTH_VNODE_WRITE_EXTATTRIBUTES, context); in vn_removexattr()
367 error = vnode_authorize(vp, NULL, KAUTH_VNODE_READ_EXTATTRIBUTES, context); in vn_listxattr()
H A Dvfs_lookup.c709 error = vnode_authorize(dp, NULL, KAUTH_VNODE_SEARCH, ctx); in lookup_authorize_search()
H A Dvfs_cache.c843 if ((ret = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx))) { in build_path_with_parent()
/xnu-11215/bsd/kern/
H A Dkern_descrip.c4381 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel()
4576 if (vnode_authorize(src_vp, NULLVP, in sys_fcntl_nocancel()
4585 if (vnode_authorize(dst_vp, NULLVP, in sys_fcntl_nocancel()
4720 if (vnode_authorize(src_vp, NULLVP, in sys_fcntl_nocancel()
4728 if (vnode_authorize(dst_vp, NULLVP, in sys_fcntl_nocancel()
4776 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel()
4823 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel()
4883 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel()
4921 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel()
5170 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_READ_DATA), &context) != 0) { in sys_fcntl_nocancel()
H A Duipc_usrreq.c1231 error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx); in unp_bind()
1345 error = vnode_authorize(vp, NULL, KAUTH_VNODE_WRITE_DATA, ctx); in unp_connect()
H A Dkern_mman.c633 error = vnode_authorize(vp, NULL, KAUTH_VNODE_CHECKIMMUTABLE, ctx); in mmap()
H A Dmach_loader.c3660 if ((error = vnode_authorize(vp, NULL, KAUTH_VNODE_EXECUTE | KAUTH_VNODE_READ_DATA, ctx)) != 0) { in get_macho_vnode()
H A Dkern_exec.c6624 if ((error = vnode_authorize(vp, NULL, action, imgp->ip_vfs_context)) != 0) { in exec_check_permissions()
/xnu-11215/bsd/miscfs/nullfs/
H A Dnull_vnops.c297 if (vnode_authorize(lowervp, NULL, KAUTH_VNODE_GENERIC_READ_BITS, ectx) == 0) { in nullfs_getattr()
305 if (vnode_authorize(lowervp, NULL, KAUTH_VNODE_GENERIC_EXECUTE_BITS, ectx) == 0) { in nullfs_getattr()
/xnu-11215/bsd/miscfs/devfs/
H A Ddevfs_fdesc_support.c418 if ((error = vnode_authorize((struct vnode *)fp_get_data(fp), in fdesc_attr()
/xnu-11215/bsd/sys/
H A Dvnode.h2004 int vnode_authorize(vnode_t vp, vnode_t dvp, kauth_action_t action, vfs_context_t ctx);
/xnu-11215/bsd/nfs/
H A Dnfs_syscalls.c516 if ((error = vnode_authorize(vp, NULL, action, ctx)) != 0) { in fhopen()
H A Dnfs_serv.c5262 error = vnode_authorize(vp, dvp, action, ctx); in nfsrv_authorize()