Lines Matching refs:winname

243 idmap_namerule_parts_clear(char **windomain, char **winname,  in idmap_namerule_parts_clear()  argument
249 if (winname) in idmap_namerule_parts_clear()
250 *winname = NULL; in idmap_namerule_parts_clear()
266 char **windomain, char **winname, in idmap_namerule2parts() argument
272 if (EMPTY_STRING(rule->winname) && EMPTY_STRING(rule->unixname)) in idmap_namerule2parts()
280 retcode = idmap_strdupnull(winname, rule->winname); in idmap_namerule2parts()
304 if (winname && *winname) in idmap_namerule2parts()
305 free(*winname); in idmap_namerule2parts()
309 idmap_namerule_parts_clear(windomain, winname, in idmap_namerule2parts()
350 char **windomain, char **winname, in idmap_udt_get_error_rule() argument
354 idmap_namerule_parts_clear(windomain, winname, in idmap_udt_get_error_rule()
364 winname, in idmap_udt_get_error_rule()
384 char **windomain, char **winname, in idmap_udt_get_conflict_rule() argument
388 idmap_namerule_parts_clear(windomain, winname, in idmap_udt_get_conflict_rule()
399 winname, in idmap_udt_get_conflict_rule()
425 boolean_t is_user, boolean_t is_wuser, const char *winname, in idmap_udt_add_namerule() argument
447 retcode = idmap_strdupnull(&rule->winname, winname); in idmap_udt_add_namerule()
472 boolean_t is_wuser, const char *windomain, const char *winname, in idmap_udt_rm_namerule() argument
493 retcode = idmap_strdupnull(&rule->winname, winname); in idmap_udt_rm_namerule()
568 boolean_t is_user, boolean_t is_wuser, const char *winname, in idmap_iter_namerules() argument
588 retcode = idmap_strdupnull(&rule->winname, winname); in idmap_iter_namerules()
631 char **winname, char **unixname, boolean_t *is_user, in idmap_iter_next_namerule() argument
638 idmap_namerule_parts_clear(windomain, winname, in idmap_iter_next_namerule()
685 retcode = idmap_strdupnull(winname, in idmap_iter_next_namerule()
686 namerules->rules.rules_val[iter->next].winname); in idmap_iter_next_namerule()
713 if (winname && *winname) in idmap_iter_next_namerule()
714 free(*winname); in idmap_iter_next_namerule()
758 idmap_rid_t *rid, uid_t *pid, char **winname, in idmap_iter_next_mapping() argument
771 if (winname) in idmap_iter_next_mapping()
772 *winname = NULL; in idmap_iter_next_mapping()
844 retcode = idmap_strdupnull(winname, in idmap_iter_next_mapping()
882 if (winname && *winname) in idmap_iter_next_mapping()
883 free(*winname); in idmap_iter_next_mapping()
1598 const char *winname, const char *windomain, in idmap_get_w2u_mapping() argument
1621 } else if (winname) { in idmap_get_w2u_mapping()
1622 retcode = idmap_strdupnull(&request.id1name, winname); in idmap_get_w2u_mapping()
1714 char **winname, char **windomain, in idmap_get_u2w_mapping() argument
1723 if (winname) in idmap_get_u2w_mapping()
1724 *winname = NULL; in idmap_get_u2w_mapping()
1799 rc = idmap_strdupnull(winname, mapping->id2name); in idmap_get_u2w_mapping()
1814 if (winname && *winname) { in idmap_get_u2w_mapping()
1815 free(*winname); in idmap_get_u2w_mapping()
1816 *winname = NULL; in idmap_get_u2w_mapping()
2045 to->winname = NULL; in idmap_namerule_cpy()
2052 retval = idmap_strdupnull(&to->winname, from->winname); in idmap_namerule_cpy()
2063 free(to->winname); in idmap_namerule_cpy()
2064 to->winname = NULL; in idmap_namerule_cpy()
2182 char *winname, *windomain; in idmap_getwinnamebypid() local
2190 rc = idmap_cache_lookup_winnamebyuid(&winname, in idmap_getwinnamebypid()
2193 rc = idmap_cache_lookup_winnamebygid(&winname, in idmap_getwinnamebypid()
2203 NULL, NULL, &winname, &windomain, &direction, NULL); in idmap_getwinnamebypid()
2214 if (winname == NULL) { in idmap_getwinnamebypid()
2221 idmap_cache_add_winname2uid(winname, windomain, in idmap_getwinnamebypid()
2224 idmap_cache_add_winname2gid(winname, windomain, in idmap_getwinnamebypid()
2230 *name = winname; in idmap_getwinnamebypid()
2234 len = snprintf(NULL, 0, "%s@%s", winname, wd) + 1; in idmap_getwinnamebypid()
2236 (void) snprintf(*name, len, "%s@%s", winname, wd); in idmap_getwinnamebypid()
2239 idmap_free(winname); in idmap_getwinnamebypid()