Lines Matching refs:usermap
50 bool sss_selinux_match(struct sysdb_attrs *usermap,
68 if (usermap == NULL) {
69 DEBUG(SSSDBG_MINOR_FAILURE, "NULL given as usermap! Skipping ...\n");
74 for (i = 0; i < usermap->num; i++) {
75 if (!strcasecmp(usermap->a[i].name, SYSDB_ORIG_MEMBER_USER)) {
76 users_el = &usermap->a[i];
77 } else if (!strcasecmp(usermap->a[i].name, SYSDB_ORIG_MEMBER_HOST)) {
78 hosts_el = &usermap->a[i];
79 } else if (!strcasecmp(usermap->a[i].name, SYSDB_USER_CATEGORY)) {
80 usercat = &usermap->a[i];
81 } else if (!strcasecmp(usermap->a[i].name, SYSDB_HOST_CATEGORY)) {
82 hostcat = &usermap->a[i];
241 const char *sss_selinux_map_get_seuser(struct sysdb_attrs *usermap)
247 for (i = 0; i < usermap->num; i++) {
248 name = (const uint8_t *)usermap->a[i].name;
250 return (const char *)usermap->a[i].values[0].data;