Searched refs:usrdatum (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/security/selinux/ss/ |
H A D | policydb.c | 414 struct user_datum *usrdatum; user_index() local 417 usrdatum = datum; user_index() 419 if (!usrdatum->value user_index() 420 || usrdatum->value > p->p_users.nprim user_index() 421 || usrdatum->bounds > p->p_users.nprim) user_index() 425 if (flex_array_put_ptr(fa, usrdatum->value - 1, key, user_index() 428 p->user_val_to_struct[usrdatum->value - 1] = usrdatum; user_index() 703 struct user_datum *usrdatum; user_destroy() local 707 usrdatum = datum; user_destroy() 708 ebitmap_destroy(&usrdatum->roles); user_destroy() 709 ebitmap_destroy(&usrdatum->range.level[0].cat); user_destroy() 710 ebitmap_destroy(&usrdatum->range.level[1].cat); user_destroy() 711 ebitmap_destroy(&usrdatum->dfltlevel.cat); user_destroy() 946 struct user_datum *usrdatum; policydb_context_isvalid() local 969 usrdatum = p->user_val_to_struct[c->user - 1]; policydb_context_isvalid() 970 if (!usrdatum) policydb_context_isvalid() 973 if (!ebitmap_get_bit(&usrdatum->roles, c->role - 1)) policydb_context_isvalid() 1536 struct user_datum *usrdatum; user_read() local 1542 usrdatum = kzalloc(sizeof(*usrdatum), GFP_KERNEL); user_read() 1543 if (!usrdatum) user_read() 1554 usrdatum->value = le32_to_cpu(buf[1]); user_read() 1556 usrdatum->bounds = le32_to_cpu(buf[2]); user_read() 1562 rc = ebitmap_read(&usrdatum->roles, fp); user_read() 1567 rc = mls_read_range_helper(&usrdatum->range, fp); user_read() 1570 rc = mls_read_level(&usrdatum->dfltlevel, fp); user_read() 1575 rc = hashtab_insert(h, key, usrdatum); user_read() 1580 user_destroy(key, usrdatum, NULL); user_read() 3003 struct user_datum *usrdatum = datum; user_write() local 3014 buf[items++] = cpu_to_le32(usrdatum->value); user_write() 3016 buf[items++] = cpu_to_le32(usrdatum->bounds); user_write() 3026 rc = ebitmap_write(&usrdatum->roles, fp); user_write() 3030 rc = mls_write_range_helper(&usrdatum->range, fp); user_write() 3034 rc = mls_write_level(&usrdatum->dfltlevel, fp); user_write()
|
H A D | mls.c | 193 struct user_datum *usrdatum; mls_context_isvalid() local 209 usrdatum = p->user_val_to_struct[c->user - 1]; mls_context_isvalid() 210 if (!mls_range_contains(usrdatum->range, c->range)) mls_context_isvalid()
|
H A D | services.c | 1154 struct user_datum *usrdatum; string_to_context_struct() local 1175 usrdatum = hashtab_search(pol->p_users.table, scontextp); string_to_context_struct() 1176 if (!usrdatum) string_to_context_struct() 1179 ctx->user = usrdatum->value; string_to_context_struct() 1686 struct user_datum *usrdatum; convert_context() local 1732 usrdatum = hashtab_search(args->newp->p_users.table, convert_context() 1734 if (!usrdatum) convert_context() 1736 c->user = usrdatum->value; convert_context()
|
Completed in 79 milliseconds