Searched refs:usrdatum (Results 1 – 8 of 8) sorted by relevance
/external/selinux/libsepol/src/ |
D | users.c | 21 user_datum_t *usrdatum = policydb->user_val_to_struct[user_idx]; in user_to_record() local 28 if (!usrdatum) in user_to_record() 31 roles = &(usrdatum->roles.roles); in user_to_record() 55 &usrdatum->exp_dfltlevel) < 0) { in user_to_record() 61 &usrdatum->exp_dfltlevel) < 0) { in user_to_record() 79 if (mls_range_cpy(&context.range, &usrdatum->exp_range) < 0) { in user_to_record() 121 user_datum_t *usrdatum = NULL; in sepol_user_modify() local 142 usrdatum = hashtab_search(policydb->p_users.table, cname); in sepol_user_modify() 145 if (usrdatum) { in sepol_user_modify() 147 int value_cp = usrdatum->s.value; in sepol_user_modify() [all …]
|
D | genusers.c | 41 user_datum_t *usrdatum; local 88 usrdatum = hashtab_search(policydb->p_users.table, q); 89 if (usrdatum) { 91 ebitmap_destroy(&usrdatum->roles.roles); 92 ebitmap_init(&usrdatum->roles.roles); 104 usrdatum = malloc(sizeof(user_datum_t)); 105 if (!usrdatum) { 113 user_datum_init(usrdatum); 114 usrdatum->s.value = ++policydb->p_users.nprim; 116 id, (hashtab_datum_t) usrdatum)) { [all …]
|
D | context.c | 39 user_datum_t *usrdatum; in context_is_valid() local 66 usrdatum = p->user_val_to_struct[c->user - 1]; in context_is_valid() 67 if (!usrdatum) in context_is_valid() 70 if (!ebitmap_get_bit(&usrdatum->cache, c->role - 1)) in context_is_valid() 151 user_datum_t *usrdatum; in context_from_record() local 169 usrdatum = (user_datum_t *) hashtab_search(policydb->p_users.table, in context_from_record() 171 if (!usrdatum) { in context_from_record() 175 scontext->user = usrdatum->s.value; in context_from_record()
|
D | policydb.c | 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() [all …]
|
D | mls.c | 262 user_datum_t *usrdatum; in mls_context_isvalid() local 314 usrdatum = p->user_val_to_struct[c->user - 1]; in mls_context_isvalid() 315 if (!usrdatum || !mls_range_contains(usrdatum->exp_range, c->range)) in mls_context_isvalid()
|
D | write.c | 1215 user_datum_t *usrdatum; in user_write() local 1222 usrdatum = (user_datum_t *) datum; in user_write() 1227 buf[items++] = cpu_to_le32(usrdatum->s.value); in user_write() 1229 buf[items++] = cpu_to_le32(usrdatum->bounds); in user_write() 1239 if (ebitmap_write(&usrdatum->roles.roles, fp)) in user_write() 1242 if (role_set_write(&usrdatum->roles, fp)) in user_write() 1254 if (mls_write_range_helper(&usrdatum->exp_range, fp)) in user_write() 1256 if (mls_write_level(&usrdatum->exp_dfltlevel, fp)) in user_write() 1262 if (mls_write_semantic_range_helper(&usrdatum->range, fp)) in user_write() 1264 if (mls_write_semantic_level_helper(&usrdatum->dfltlevel, fp)) in user_write()
|
D | services.c | 1636 user_datum_t *usrdatum; in convert_context() local 1647 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context() 1652 if (!usrdatum) { in convert_context() 1655 c->user = usrdatum->s.value; in convert_context()
|
/external/selinux/checkpolicy/ |
D | policy_define.c | 4312 user_datum_t *usrdatum; in define_user() local 4337 if ((usrdatum = declare_user()) == NULL) { in define_user() 4342 if (set_user_roles(&usrdatum->roles, id)) in define_user() 4364 usrdatum->dfltlevel.sens = levdatum->level->sens; in define_user() 4368 &usrdatum->dfltlevel.cat)) { in define_user() 4389 usrdatum->range.level[l].sens = levdatum->level->sens; in define_user() 4393 &usrdatum->range.level[l].cat)) { in define_user() 4406 if (mls_semantic_level_cpy(&usrdatum->range.level[1], in define_user() 4407 &usrdatum->range.level[0])) { in define_user() 4421 user_datum_t *usrdatum; in parse_security_context() local [all …]
|