| /xnu-11215/bsd/vfs/ |
| H A D | vfs_attrlist.c | 1360 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 D | vfs_syscalls.c | 1535 (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 D | vfs_subr.c | 8262 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 D | vfs_vnops.c | 790 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 D | vfs_xattr.c | 158 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 D | vfs_lookup.c | 709 error = vnode_authorize(dp, NULL, KAUTH_VNODE_SEARCH, ctx); in lookup_authorize_search()
|
| H A D | vfs_cache.c | 843 if ((ret = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx))) { in build_path_with_parent()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_descrip.c | 4381 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 D | uipc_usrreq.c | 1231 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 D | kern_mman.c | 633 error = vnode_authorize(vp, NULL, KAUTH_VNODE_CHECKIMMUTABLE, ctx); in mmap()
|
| H A D | mach_loader.c | 3660 if ((error = vnode_authorize(vp, NULL, KAUTH_VNODE_EXECUTE | KAUTH_VNODE_READ_DATA, ctx)) != 0) { in get_macho_vnode()
|
| H A D | kern_exec.c | 6624 if ((error = vnode_authorize(vp, NULL, action, imgp->ip_vfs_context)) != 0) { in exec_check_permissions()
|
| /xnu-11215/bsd/miscfs/nullfs/ |
| H A D | null_vnops.c | 297 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 D | devfs_fdesc_support.c | 418 if ((error = vnode_authorize((struct vnode *)fp_get_data(fp), in fdesc_attr()
|
| /xnu-11215/bsd/sys/ |
| H A D | vnode.h | 2004 int vnode_authorize(vnode_t vp, vnode_t dvp, kauth_action_t action, vfs_context_t ctx);
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs_syscalls.c | 516 if ((error = vnode_authorize(vp, NULL, action, ctx)) != 0) { in fhopen()
|
| H A D | nfs_serv.c | 5262 error = vnode_authorize(vp, dvp, action, ctx); in nfsrv_authorize()
|