| /xnu-12377.1.9/bsd/vfs/ |
| H A D | vfs_attrlist.c | 1417 if (vnode_authorize(vp, NULL, in getvolattrlist() 1421 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_LIST_DIRECTORY, ctx) == 0) { in getvolattrlist() 1424 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_SEARCH, ctx) == 0) { in getvolattrlist() 1428 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA, ctx) == 0) { in getvolattrlist() 1431 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_READ_DATA, ctx) == 0) { in getvolattrlist() 1434 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | KAUTH_VNODE_EXECUTE, ctx) == 0) { in getvolattrlist() 1889 if (vnode_authorize(vp, NULL, in attr_pack_common() 1896 if (vnode_authorize(vp, NULL, in attr_pack_common() 1902 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | in attr_pack_common() 1907 if (vnode_authorize(vp, NULL, KAUTH_VNODE_ACCESS | in attr_pack_common() [all …]
|
| H A D | vfs_syscalls.c | 1524 if ((error = vnode_authorize(devvp, NULL, accessmode, ctx)) != 0) { in mount_common() 1588 (error = vnode_authorize(device_vnode, NULL, in mount_common() 2214 if ((error = vnode_authorize(vp, NULL, accessmode, ctx)) != 0) { in authorize_devpath_and_update_mntfromname() 4397 error = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx); in fchdir() 4795 error = vnode_authorize(vp, NULL, KAUTH_VNODE_SEARCH, ctx); in change_dir() 5617 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0) { in mknodat_internal() 6013 if ((error = vnode_authorize(vp, NULL, KAUTH_VNODE_LINKTARGET, ctx)) != 0) { in linkat_internal() 6029 if ((error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx)) != 0) { in linkat_internal() 6250 error = vnode_authorize(dvp, NULL, KAUTH_VNODE_ADD_FILE, ctx); in symlinkat_internal() 6913 error = vnode_authorize(vp, dvp, action | KAUTH_VNODE_ACCESS, ctx); in access1() [all …]
|
| 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_subr.c | 8317 error = vnode_authorize(dvp, NULL, KAUTH_VNODE_WRITE_EXTATTRIBUTES, ctx); in vn_authorize_unlink() 8323 error = vnode_authorize(vp, dvp, KAUTH_VNODE_DELETE, ctx); in vn_authorize_unlink() 8425 error = vnode_authorize(pvp, NULL, action, ctx); in vn_authorize_open_existing() 8459 error = vnode_authorize(vp, NULL, action, ctx); in vn_authorize_open_existing() 8524 return vnode_authorize(dvp, NULL, action, ctx); in vn_authorize_create() 8692 error = vnode_authorize(fvp, fdvp, KAUTH_VNODE_DELETE | f, ctx); in vn_authorize_renamex_with_paths() 8702 error = vnode_authorize(tvp, tdvp, KAUTH_VNODE_DELETE | t, ctx); in vn_authorize_renamex_with_paths() 8709 error = vnode_authorize(fdvp, NULL, f | t, ctx); in vn_authorize_renamex_with_paths() 8711 error = vnode_authorize(fdvp, NULL, t, ctx); in vn_authorize_renamex_with_paths() 8715 error = vnode_authorize(tdvp, NULL, f, ctx); in vn_authorize_renamex_with_paths() [all …]
|
| H A D | vfs_vnops.c | 835 return vnode_authorize(vp, NULL, action, context); in vn_access() 1708 …if ((error = vnode_authorize(vp, NULL, KAUTH_VNODE_READ_ATTRIBUTES | KAUTH_VNODE_READ_SECURITY, ct… in vn_stat()
|
| H A D | vfs_lookup.c | 812 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-12377.1.9/bsd/kern/ |
| H A D | kern_descrip.c | 4420 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel() 4625 if (vnode_authorize(src_vp, NULLVP, in sys_fcntl_nocancel() 4634 if (vnode_authorize(dst_vp, NULLVP, in sys_fcntl_nocancel() 4769 if (vnode_authorize(src_vp, NULLVP, in sys_fcntl_nocancel() 4777 if (vnode_authorize(dst_vp, NULLVP, in sys_fcntl_nocancel() 4825 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel() 4872 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel() 4932 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel() 4970 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel() 5219 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 | 3942 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 | 6784 if ((error = vnode_authorize(vp, NULL, action, imgp->ip_vfs_context)) != 0) { in exec_check_permissions()
|
| /xnu-12377.1.9/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-12377.1.9/bsd/miscfs/devfs/ |
| H A D | devfs_fdesc_support.c | 420 if ((error = vnode_authorize(vp, in fdesc_attr()
|
| /xnu-12377.1.9/bsd/sys/ |
| H A D | vnode.h | 2010 int vnode_authorize(vnode_t vp, vnode_t dvp, kauth_action_t action, vfs_context_t ctx);
|
| /xnu-12377.1.9/bsd/nfs/ |
| H A D | nfs_syscalls.c | 518 if ((error = vnode_authorize(vp, NULL, action, ctx)) != 0) { in fhopen()
|
| H A D | nfs_serv.c | 5268 error = vnode_authorize(vp, dvp, action, ctx); in nfsrv_authorize()
|