Lines Matching refs:nd
340 struct nameidata nd; in kern___mac_get_path() local
364 NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p, td); in kern___mac_get_path()
365 error = namei(&nd); in kern___mac_get_path()
370 mac_vnode_copy_label(nd.ni_vp->v_label, intlabel); in kern___mac_get_path()
373 NDFREE(&nd, 0); in kern___mac_get_path()
507 struct nameidata nd; in kern___mac_set_path() local
537 NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p, td); in kern___mac_set_path()
538 error = namei(&nd); in kern___mac_set_path()
540 error = vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH); in kern___mac_set_path()
542 error = vn_setlabel(nd.ni_vp, intlabel, in kern___mac_set_path()
548 NDFREE(&nd, 0); in kern___mac_set_path()