Lines Matching refs:usrdatum
21 user_datum_t *usrdatum = policydb->user_val_to_struct[user_idx];
22 ebitmap_t *roles = &(usrdatum->roles.roles);
50 &usrdatum->exp_dfltlevel) < 0) {
56 &usrdatum->exp_dfltlevel) < 0) {
74 if (mls_range_cpy(&context.range, &usrdatum->exp_range) < 0) {
116 user_datum_t *usrdatum = NULL;
137 usrdatum = hashtab_search(policydb->p_users.table,
141 if (usrdatum) {
143 int value_cp = usrdatum->s.value;
144 user_datum_destroy(usrdatum);
145 user_datum_init(usrdatum);
146 usrdatum->s.value = value_cp;
150 usrdatum = (user_datum_t *) malloc(sizeof(user_datum_t));
151 if (!usrdatum)
153 user_datum_init(usrdatum);
173 (&(usrdatum->roles.roles), bit, 1))
194 if (mls_level_cpy(&usrdatum->exp_dfltlevel,
214 if (mls_range_cpy(&usrdatum->exp_range, &context.range) < 0) {
251 usrdatum->s.value = ++policydb->p_users.nprim;
253 (hashtab_datum_t) usrdatum) < 0)
257 policydb->p_user_val_to_name[usrdatum->s.value - 1] = name;
258 policydb->user_val_to_struct[usrdatum->s.value - 1] = usrdatum;
262 if (role_set_expand(&usrdatum->roles, &usrdatum->cache,
280 if (new && usrdatum) {
281 role_set_destroy(&usrdatum->roles);
282 free(usrdatum);
321 user_datum_t *usrdatum = NULL;
326 usrdatum = hashtab_search(policydb->p_users.table,
329 if (!usrdatum) {
334 if (user_to_record(handle, policydb, usrdatum->s.value - 1, response) <