Lines Matching refs:usrdatum
284 struct user_datum *usrdatum; in user_destroy() local
288 usrdatum = datum; in user_destroy()
289 ebitmap_destroy(&usrdatum->roles); in user_destroy()
290 ebitmap_destroy(&usrdatum->range.level[0].cat); in user_destroy()
291 ebitmap_destroy(&usrdatum->range.level[1].cat); in user_destroy()
292 ebitmap_destroy(&usrdatum->dfltlevel.cat); in user_destroy()
600 struct user_datum *usrdatum; in user_index() local
602 usrdatum = datum; in user_index()
604 if (!usrdatum->value in user_index()
605 || usrdatum->value > p->p_users.nprim in user_index()
606 || usrdatum->bounds > p->p_users.nprim) in user_index()
609 p->sym_val_to_name[SYM_USERS][usrdatum->value - 1] = key; in user_index()
610 p->user_val_to_struct[usrdatum->value - 1] = usrdatum; in user_index()
918 struct user_datum *usrdatum; in policydb_context_isvalid() local
941 usrdatum = p->user_val_to_struct[c->user - 1]; in policydb_context_isvalid()
942 if (!usrdatum) in policydb_context_isvalid()
945 if (!ebitmap_get_bit(&usrdatum->roles, c->role - 1)) in policydb_context_isvalid()
1507 struct user_datum *usrdatum; in user_read() local
1512 usrdatum = kzalloc(sizeof(*usrdatum), GFP_KERNEL); in user_read()
1513 if (!usrdatum) in user_read()
1524 usrdatum->value = le32_to_cpu(buf[1]); in user_read()
1526 usrdatum->bounds = le32_to_cpu(buf[2]); in user_read()
1532 rc = ebitmap_read(&usrdatum->roles, fp); in user_read()
1537 rc = mls_read_range_helper(&usrdatum->range, fp); in user_read()
1540 rc = mls_read_level(&usrdatum->dfltlevel, fp); in user_read()
1545 rc = hashtab_insert(h, key, usrdatum); in user_read()
1550 user_destroy(key, usrdatum, NULL); in user_read()
3024 struct user_datum *usrdatum = datum; in user_write() local
3035 buf[items++] = cpu_to_le32(usrdatum->value); in user_write()
3037 buf[items++] = cpu_to_le32(usrdatum->bounds); in user_write()
3047 rc = ebitmap_write(&usrdatum->roles, fp); in user_write()
3051 rc = mls_write_range_helper(&usrdatum->range, fp); in user_write()
3055 rc = mls_write_level(&usrdatum->dfltlevel, fp); in user_write()