| /xnu-12377.41.6/bsd/sys/ |
| H A D | namei.h | 125 struct componentname ni_cnd; member 214 (ndp)->ni_cnd.cn_nameiop = op; \ 216 (ndp)->ni_cnd.cn_flags = flags; \ 224 (ndp)->ni_cnd.cn_context = ctx; \ 226 (ndp)->ni_cnd.cn_ndp = (ndp); \
|
| /xnu-12377.41.6/bsd/nfs/ |
| H A D | nfs_serv.c | 692 isdotdot = ((len == 2) && (ni.ni_cnd.cn_pnbuf[0] == '.') && (ni.ni_cnd.cn_pnbuf[1] == '.')); in nfsrv_lookup() 2018 ni.ni_cnd.cn_nameiop = 0; in nfsrv_create() 2051 ni.ni_cnd.cn_nameiop = 0; in nfsrv_create() 2146 error = vn_authorize_create(dvp, &ni.ni_cnd, vap, ctx, NULL); in nfsrv_create() 2154 error = VNOP_CREATE(dvp, &vp, &ni.ni_cnd, vap, ctx); in nfsrv_create() 2200 error = VNOP_MKNOD(dvp, &vp, &ni.ni_cnd, vap, ctx); in nfsrv_create() 2213 ni.ni_cnd.cn_nameiop = LOOKUP; in nfsrv_create() 2217 ni.ni_cnd.cn_flags &= ~LOCKPARENT; in nfsrv_create() 2218 ni.ni_cnd.cn_context = ctx; in nfsrv_create() 2222 cnflags = ni.ni_cnd.cn_flags; /* store in case we have to restore */ in nfsrv_create() [all …]
|
| H A D | nfs_subs.c | 903 struct componentname *cnp = &nip->ni_cnd; in nfsm_chain_get_path_namei() 958 struct componentname *cnp = &nip->ni_cnd; in nfsrv_namei() 979 nip->ni_cnd.cn_context = ctx; in nfsrv_namei() 993 cnflags = nip->ni_cnd.cn_flags; /* store in case we have to restore */ in nfsrv_namei() 995 nip->ni_cnd.cn_flags = cnflags; in nfsrv_namei() 2010 xnd.ni_cnd.cn_nameptr = xnd.ni_cnd.cn_pnbuf = path; in nfsrv_export() 2015 xnd.ni_cnd.cn_flags = LOCKLEAF; in nfsrv_export() 2016 xnd.ni_cnd.cn_nameptr = xnd.ni_cnd.cn_pnbuf; in nfsrv_export()
|
| /xnu-12377.41.6/bsd/vfs/ |
| H A D | vfs_vnops.c | 230 if (ndp->ni_cnd.cn_flags & CN_WANTSRSRCFORK) { in vn_open_auth_do_create() 231 if ((error = vn_authorize_create(dvp, &ndp->ni_cnd, vap, ctx, NULL)) != 0) { in vn_open_auth_do_create() 241 if ((error = vn_authorize_create(dvp, &ndp->ni_cnd, vap, ctx, NULL)) != 0) { in vn_open_auth_do_create() 296 …vnode_update_identity(vp, dvp, ndp->ni_cnd.cn_nameptr, ndp->ni_cnd.cn_namelen, ndp->ni_cnd.cn_hash… in vn_open_auth_do_create() 379 vfs_context_t ctx = ndp->ni_cnd.cn_context; in vn_open_auth() 398 origcnflags = ndp->ni_cnd.cn_flags; in vn_open_auth() 430 ndp->ni_cnd.cn_nameiop = CREATE; in vn_open_auth() 435 ndp->ni_cnd.cn_flags &= (USEDVP | NOCROSSMOUNT); in vn_open_auth() 436 ndp->ni_cnd.cn_flags |= LOCKPARENT | LOCKLEAF | AUDITVNPATH1; in vn_open_auth() 442 ndp->ni_cnd.cn_flags |= CN_ALLOWRSRCFORK; in vn_open_auth() [all …]
|
| H A D | vfs_lookup.c | 195 uint32_t cnpflags = ndp->ni_cnd.cn_flags; /* store in case we have to restore after loop */ in namei() 197 struct componentname *cnp = &ndp->ni_cnd; in namei() 245 error = lookup_handle_found_vnode(ndp, &ndp->ni_cnd, rdonly, vbusyflags, in namei() 735 if ((error == ENOENT) && (ndp->ni_cnd.cn_flags & CN_VOLFSPATH)) { in namei() 746 ndp->ni_cnd.cn_flags = cnpflags; in namei() 1301 struct componentname *cnp = &ndp->ni_cnd; 1765 struct componentname *cnp = &ndp->ni_cnd; 1938 struct componentname *cnp = &ndp->ni_cnd; 2196 if (ndp->ni_cnd.cn_flags & HASBUF) { 2197 char *tmp = ndp->ni_cnd.cn_pnbuf; [all …]
|
| H A D | vfs_syscalls.c | 333 nd.ni_cnd.cn_pnbuf = pnbuf; in kernel_mount() 334 nd.ni_cnd.cn_pnlen = (int)(strlen(pnbuf) + 1); in kernel_mount() 339 error = mount_common(fstype, pvp, vp, &nd.ni_cnd, CAST_USER_ADDR_T(data), in kernel_mount() 985 error = relocate_imageboot_source(pvp, vp, &nd.ni_cnd, fstypename, in __mac_mount() 1106 error = mount_common(fstypename, pvp, vp, &nd.ni_cnd, uap->data, flags, 0, in __mac_mount() 1550 strlcpy(mp->mnt_vfsstat.f_mntfromname, nd.ni_cnd.cn_pnbuf, MAXPATHLEN); in mount_common() 2223 strlcpy(mp->mnt_vfsstat.f_mntfromname, nd.ni_cnd.cn_pnbuf, MAXPATHLEN); in authorize_devpath_and_update_mntfromname() 4323 !(ndp->ni_cnd.cn_flags & USEDVP)) { in nameiat() 4339 error = vnode_getfromfd(ndp->ni_cnd.cn_context, dirfd, in nameiat() 4351 ndp->ni_cnd.cn_flags |= USEDVP; in nameiat() [all …]
|
| H A D | vfs_exclave_fs.c | 732 nd.ni_cnd.cn_flags |= WILLBEDIR; in create_exclave_dir() 736 nd.ni_cnd.cn_flags |= USEDVP; in create_exclave_dir() 751 nd.ni_cnd.cn_flags &= ~USEDVP; in create_exclave_dir() 757 error = vn_authorize_mkdir(dvp, &nd.ni_cnd, vap, ctx, NULL); in create_exclave_dir() 780 vnode_update_identity(vp, dvp, nd.ni_cnd.cn_nameptr, in create_exclave_dir() 781 nd.ni_cnd.cn_namelen, nd.ni_cnd.cn_hash, update_flags); in create_exclave_dir() 1074 ndp->ni_cnd.cn_flags |= USEDVP; in exclave_fs_open_internal()
|
| H A D | kpi_vfs.c | 3539 struct componentname *cnp = &ndp->ni_cnd; in VNOP_COMPOUND_OPEN() 4380 a.a_cnp = &ndp->ni_cnd; in VNOP_COMPOUND_REMOVE() 4399 xattrfile_remove(dvp, ndp->ni_cnd.cn_nameptr, ctx, 1); in VNOP_COMPOUND_REMOVE() 4675 error = VNOP_COMPOUND_RENAME(fdvp, &src_attr_vp, &fromnd->ni_cnd, NULL, in vn_rename() 4676 tdvp, &dst_attr_vp, &tond->ni_cnd, NULL, in vn_rename() 4679 error = VNOP_RENAME(fdvp, src_attr_vp, &fromnd->ni_cnd, in vn_rename() 4680 tdvp, dst_attr_vp, &tond->ni_cnd, ctx); in vn_rename() 4693 tond->ni_cnd.cn_nameptr, in vn_rename() 4694 tond->ni_cnd.cn_namelen, in vn_rename() 4695 tond->ni_cnd.cn_hash, in vn_rename() [all …]
|
| H A D | vfs_xattr.c | 2160 nd->ni_cnd.cn_nameiop = CREATE; in open_xattrfile() 2165 nd->ni_cnd.cn_flags |= LOCKPARENT; in open_xattrfile() 2443 (void) VNOP_REMOVE(dvp, rvp, &nd.ni_cnd, 0, context); in remove_xattrfile()
|
| H A D | vfs_subr.c | 7774 ndp->ni_cnd.cn_flags |= USEDVP; in vnode_lookupat() 7781 ndp->ni_cnd.cn_flags &= ~USEDVP; in vnode_lookupat() 7959 return VNOP_CREATE(dvp, vpp, &ndp->ni_cnd, vap, ctx); in vn_create_reg() 8013 cnp = &ndp->ni_cnd; in vn_create() 12288 int rv = mac_vnode_check_trigger_resolve(ctx, vp, &ndp->ni_cnd); in vnode_trigger_resolve() 12308 result = rp->vr_resolve_func(vp, &ndp->ni_cnd, op, 0, rp->vr_data, ctx); in vnode_trigger_resolve()
|
| /xnu-12377.41.6/security/ |
| H A D | mac_vfs.c | 1248 imgp->ip_execlabelp, &imgp->ip_ndp->ni_cnd, &imgp->ip_csflags, in mac_vnode_check_exec() 1269 imgp->ip_execlabelp, &imgp->ip_ndp->ni_cnd, &imgp->ip_csflags, in mac_vnode_check_exec()
|
| /xnu-12377.41.6/bsd/kern/ |
| H A D | uipc_usrreq.c | 1220 nd.ni_dvp, &nd.ni_cnd, &va); in unp_bind() 1226 nd.ni_dvp, &nd.ni_cnd, &va); in unp_bind()
|
| H A D | kern_exec.c | 956 uint64_t buflen = imgp->ip_ndp->ni_cnd.cn_namelen; in set_proc_name() 964 bcopy((caddr_t)imgp->ip_ndp->ni_cnd.cn_nameptr, (caddr_t)p->p_name, buflen); in set_proc_name() 972 bcopy((caddr_t)imgp->ip_ndp->ni_cnd.cn_nameptr, (caddr_t)p->p_comm, buflen); in set_proc_name()
|