Lines Matching refs:usrdatum
1038 user_datum_t *usrdatum; in user_index() local
1040 usrdatum = (user_datum_t *) datum; in user_index()
1043 if (!usrdatum->s.value || usrdatum->s.value > p->p_users.nprim) in user_index()
1045 if (p->p_user_val_to_name[usrdatum->s.value - 1] != NULL) in user_index()
1047 p->p_user_val_to_name[usrdatum->s.value - 1] = (char *)key; in user_index()
1048 p->user_val_to_struct[usrdatum->s.value - 1] = usrdatum; in user_index()
3118 user_datum_t *usrdatum; in user_read() local
3123 usrdatum = calloc(1, sizeof(user_datum_t)); in user_read()
3124 if (!usrdatum) in user_read()
3138 usrdatum->s.value = le32_to_cpu(buf[1]); in user_read()
3140 usrdatum->bounds = le32_to_cpu(buf[2]); in user_read()
3151 if (ebitmap_read(&usrdatum->roles.roles, fp)) in user_read()
3154 if (role_set_read(&usrdatum->roles, fp)) in user_read()
3170 if (mls_read_range_helper(&usrdatum->exp_range, fp)) in user_read()
3172 if (mls_read_level(&usrdatum->exp_dfltlevel, fp)) in user_read()
3175 if (mls_range_to_semantic(&usrdatum->exp_range, in user_read()
3176 &usrdatum->range)) in user_read()
3178 if (mls_level_to_semantic(&usrdatum->exp_dfltlevel, in user_read()
3179 &usrdatum->dfltlevel)) in user_read()
3186 if (mls_read_semantic_range_helper(&usrdatum->range, fp)) in user_read()
3188 if (mls_read_semantic_level_helper(&usrdatum->dfltlevel, fp)) in user_read()
3192 if (hashtab_insert(h, key, usrdatum)) in user_read()
3198 user_destroy(key, usrdatum, NULL); in user_read()