Home
last modified time | relevance | path

Searched refs:ni_cnd (Results 1 – 13 of 13) sorted by relevance

/xnu-11417.140.69/bsd/sys/ !
H A Dnamei.h125 struct componentname ni_cnd; member
204 (ndp)->ni_cnd.cn_nameiop = op; \
206 (ndp)->ni_cnd.cn_flags = flags; \
214 (ndp)->ni_cnd.cn_context = ctx; \
216 (ndp)->ni_cnd.cn_ndp = (ndp); \
/xnu-11417.140.69/bsd/nfs/ !
H A Dnfs_serv.c692 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 Dnfs_subs.c903 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-11417.140.69/bsd/vfs/ !
H A Dvfs_lookup.c174 uint32_t cnpflags = ndp->ni_cnd.cn_flags; /* store in case we have to restore after loop */ in namei()
176 struct componentname *cnp = &ndp->ni_cnd; in namei()
224 error = lookup_handle_found_vnode(ndp, &ndp->ni_cnd, rdonly, vbusyflags, in namei()
686 if ((error == ENOENT) && (ndp->ni_cnd.cn_flags & CN_VOLFSPATH)) { in namei()
697 ndp->ni_cnd.cn_flags = cnpflags; in namei()
1243 struct componentname *cnp = &ndp->ni_cnd;
1680 struct componentname *cnp = &ndp->ni_cnd;
1828 struct componentname *cnp = &ndp->ni_cnd;
2090 if (ndp->ni_cnd.cn_flags & HASBUF) {
2091 char *tmp = ndp->ni_cnd.cn_pnbuf;
[all …]
H A Dvfs_vnops.c230 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 Dvfs_syscalls.c332 nd.ni_cnd.cn_pnbuf = pnbuf; in kernel_mount()
333 nd.ni_cnd.cn_pnlen = (int)(strlen(pnbuf) + 1); in kernel_mount()
338 error = mount_common(fstype, pvp, vp, &nd.ni_cnd, CAST_USER_ADDR_T(data), in kernel_mount()
911 error = relocate_imageboot_source(pvp, vp, &nd.ni_cnd, fstypename, in __mac_mount()
1032 error = mount_common(fstypename, pvp, vp, &nd.ni_cnd, uap->data, flags, 0, in __mac_mount()
1476 strlcpy(mp->mnt_vfsstat.f_mntfromname, nd.ni_cnd.cn_pnbuf, MAXPATHLEN); in mount_common()
2149 strlcpy(mp->mnt_vfsstat.f_mntfromname, nd.ni_cnd.cn_pnbuf, MAXPATHLEN); in authorize_devpath_and_update_mntfromname()
4131 !(ndp->ni_cnd.cn_flags & USEDVP)) { in nameiat()
4147 error = vnode_getfromfd(ndp->ni_cnd.cn_context, dirfd, in nameiat()
4159 ndp->ni_cnd.cn_flags |= USEDVP; in nameiat()
[all …]
H A Dvfs_exclave_fs.c741 nd.ni_cnd.cn_flags |= WILLBEDIR; in create_exclave_dir()
745 nd.ni_cnd.cn_flags |= USEDVP; in create_exclave_dir()
760 nd.ni_cnd.cn_flags &= ~USEDVP; in create_exclave_dir()
766 error = vn_authorize_mkdir(dvp, &nd.ni_cnd, vap, ctx, NULL); in create_exclave_dir()
789 vnode_update_identity(vp, dvp, nd.ni_cnd.cn_nameptr, in create_exclave_dir()
790 nd.ni_cnd.cn_namelen, nd.ni_cnd.cn_hash, update_flags); in create_exclave_dir()
1082 ndp->ni_cnd.cn_flags |= USEDVP; in exclave_fs_open_internal()
H A Dkpi_vfs.c3512 struct componentname *cnp = &ndp->ni_cnd; in VNOP_COMPOUND_OPEN()
4353 a.a_cnp = &ndp->ni_cnd; in VNOP_COMPOUND_REMOVE()
4372 xattrfile_remove(dvp, ndp->ni_cnd.cn_nameptr, ctx, 1); in VNOP_COMPOUND_REMOVE()
4648 error = VNOP_COMPOUND_RENAME(fdvp, &src_attr_vp, &fromnd->ni_cnd, NULL, in vn_rename()
4649 tdvp, &dst_attr_vp, &tond->ni_cnd, NULL, in vn_rename()
4652 error = VNOP_RENAME(fdvp, src_attr_vp, &fromnd->ni_cnd, in vn_rename()
4653 tdvp, dst_attr_vp, &tond->ni_cnd, ctx); in vn_rename()
4666 tond->ni_cnd.cn_nameptr, in vn_rename()
4667 tond->ni_cnd.cn_namelen, in vn_rename()
4668 tond->ni_cnd.cn_hash, in vn_rename()
[all …]
H A Dvfs_xattr.c3137 nd->ni_cnd.cn_nameiop = CREATE; in open_xattrfile()
3142 nd->ni_cnd.cn_flags |= LOCKPARENT; in open_xattrfile()
3445 (void) VNOP_REMOVE(dvp, rvp, &nd.ni_cnd, 0, context); in remove_xattrfile()
H A Dvfs_subr.c7738 ndp->ni_cnd.cn_flags |= USEDVP; in vnode_lookupat()
7745 ndp->ni_cnd.cn_flags &= ~USEDVP; in vnode_lookupat()
7923 return VNOP_CREATE(dvp, vpp, &ndp->ni_cnd, vap, ctx); in vn_create_reg()
7977 cnp = &ndp->ni_cnd; in vn_create()
12181 int rv = mac_vnode_check_trigger_resolve(ctx, vp, &ndp->ni_cnd); in vnode_trigger_resolve()
12201 result = rp->vr_resolve_func(vp, &ndp->ni_cnd, op, 0, rp->vr_data, ctx); in vnode_trigger_resolve()
/xnu-11417.140.69/bsd/kern/ !
H A Dkern_exec.c951 uint64_t buflen = imgp->ip_ndp->ni_cnd.cn_namelen; in set_proc_name()
959 bcopy((caddr_t)imgp->ip_ndp->ni_cnd.cn_nameptr, (caddr_t)p->p_name, buflen); in set_proc_name()
967 bcopy((caddr_t)imgp->ip_ndp->ni_cnd.cn_nameptr, (caddr_t)p->p_comm, buflen); in set_proc_name()
1831 imgp->ip_ndp->ni_cnd.cn_nameptr, in exec_mach_imgact()
1832 (unsigned)imgp->ip_ndp->ni_cnd.cn_namelen, in exec_mach_imgact()
H A Duipc_usrreq.c1220 nd.ni_dvp, &nd.ni_cnd, &va); in unp_bind()
1226 nd.ni_dvp, &nd.ni_cnd, &va); in unp_bind()
/xnu-11417.140.69/security/ !
H A Dmac_vfs.c1248 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()