/external/selinux/libsepol/src/ |
users.c | 21 user_datum_t *usrdatum = policydb->user_val_to_struct[user_idx]; local 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; local 137 usrdatum = hashtab_search(policydb->p_users.table, 141 if (usrdatum) { 143 int value_cp = usrdatum->s.value; 144 user_datum_destroy(usrdatum); 321 user_datum_t *usrdatum = NULL; local [all...] |
genusers.c | 42 user_datum_t *usrdatum; local 87 usrdatum = hashtab_search(policydb->p_users.table, q); 88 if (usrdatum) { 90 ebitmap_destroy(&usrdatum->roles.roles); 91 ebitmap_init(&usrdatum->roles.roles); 103 usrdatum = malloc(sizeof(user_datum_t)); 104 if (!usrdatum) { 112 user_datum_init(usrdatum); 113 usrdatum->s.value = ++policydb->p_users.nprim; 115 id, (hashtab_datum_t) usrdatum)) { [all...] |
context.c | 38 user_datum_t *usrdatum; local 65 usrdatum = p->user_val_to_struct[c->user - 1]; 66 if (!usrdatum) 69 if (!ebitmap_get_bit(&usrdatum->cache, c->role - 1)) 150 user_datum_t *usrdatum; local 168 usrdatum = (user_datum_t *) hashtab_search(policydb->p_users.table, 170 if (!usrdatum) { 174 scontext->user = usrdatum->s.value;
|
policydb.c | 908 user_datum_t *usrdatum; local 910 usrdatum = (user_datum_t *) datum; 913 if (!usrdatum->s.value || usrdatum->s.value > p->p_users.nprim) 916 p->p_user_val_to_name[usrdatum->s.value - 1] = (char *)key; 917 p->user_val_to_struct[usrdatum->s.value - 1] = usrdatum; 2865 user_datum_t *usrdatum; local [all...] |
mls.c | 262 user_datum_t *usrdatum; local 312 usrdatum = p->user_val_to_struct[c->user - 1]; 313 if (!mls_range_contains(usrdatum->exp_range, c->range))
|
write.c | 1182 user_datum_t *usrdatum; local 1189 usrdatum = (user_datum_t *) datum; 1194 buf[items++] = cpu_to_le32(usrdatum->s.value); 1196 buf[items++] = cpu_to_le32(usrdatum->bounds); 1206 if (ebitmap_write(&usrdatum->roles.roles, fp)) 1209 if (role_set_write(&usrdatum->roles, fp)) 1221 if (mls_write_range_helper(&usrdatum->exp_range, fp)) 1223 if (mls_write_level(&usrdatum->exp_dfltlevel, fp)) 1229 if (mls_write_semantic_range_helper(&usrdatum->range, fp)) 1231 if (mls_write_semantic_level_helper(&usrdatum->dfltlevel, fp) [all...] |
services.c | 1572 user_datum_t *usrdatum; local [all...] |
/external/selinux/checkpolicy/ |
policy_define.c | 4176 user_datum_t *usrdatum; local 4285 user_datum_t *usrdatum; local [all...] |