Home
last modified time | relevance | path

Searched refs:p_users (Results 1 – 17 of 17) sorted by relevance

/third_party/selinux/libsepol/src/
Dusers.c140 usrdatum = hashtab_search(policydb->p_users.table, cname); in sepol_user_modify()
230 (policydb->p_users.nprim + in sepol_user_modify()
235 policydb->user_val_to_struct[policydb->p_users.nprim] = NULL; in sepol_user_modify()
238 (policydb->p_users.nprim + in sepol_user_modify()
243 policydb->p_user_val_to_name[policydb->p_users.nprim] = NULL; in sepol_user_modify()
251 usrdatum->s.value = ++policydb->p_users.nprim; in sepol_user_modify()
252 if (hashtab_insert(policydb->p_users.table, name, in sepol_user_modify()
297 *response = (hashtab_search(policydb->p_users.table, cname) != NULL); in sepol_user_exists()
307 *response = policydb->p_users.nprim; in sepol_user_count()
323 usrdatum = hashtab_search(policydb->p_users.table, cname); in sepol_user_query()
[all …]
Dcontext.c47 if (!c->user || c->user > p->p_users.nprim) in context_is_valid()
168 usrdatum = (user_datum_t *) hashtab_search(policydb->p_users.table, in context_from_record()
Dlink.c541 base_user = hashtab_search(state->base->p_users.table, id); in user_copy_callback()
558 new_user->s.value = state->base->p_users.nprim + 1; in user_copy_callback()
560 ret = hashtab_insert(state->base->p_users.table, in user_copy_callback()
566 state->base->p_users.nprim++; in user_copy_callback()
581 (state->dest_decl->p_users.table, new_id, new_user)) { in user_copy_callback()
584 state->dest_decl->p_users.nprim++; in user_copy_callback()
831 dest = hashtab_search(state->base->p_users.table, key); in user_bounds_copy_callback()
1213 usertab = &state->base->p_users; in user_fix_callback()
1215 usertab = &state->dest_decl->p_users; in user_fix_callback()
Dexpand.c639 dest = hashtab_search(state->out->p_users.table, (char *)key); in user_bounds_copy_callback()
1009 (user_datum_t *) hashtab_search(state->out->p_users.table, id); in user_copy_callback()
1018 state->out->p_users.nprim++; in user_copy_callback()
1019 new_user->s.value = state->out->p_users.nprim; in user_copy_callback()
1028 ret = hashtab_insert(state->out->p_users.table, in user_copy_callback()
3002 state.usermap = (uint32_t *)calloc(state.base->p_users.nprim, sizeof(uint32_t)); in expand_module()
3068 if (hashtab_map(state.base->p_users.table, user_copy_callback, &state)) in expand_module()
3070 if (hashtab_map(state.base->p_users.table, in expand_module()
3110 (decl->p_users.table, user_copy_callback, &state)) in expand_module()
Dhierarchy.c584 hashtab_map(p->p_users.table, bounds_check_user_callback, &args); in bounds_check_users()
650 rc = hashtab_map(p->p_users.table, hierarchy_add_user_callback, &args); in add_hierarchy_callback_template()
Dpolicydb_validate.c58 if (validate_init(&flavors[SYM_USERS], p->p_user_val_to_name, p->p_users.nprim)) in validate_array_init()
359 for (i = 0; i < p->p_users.nprim; i++) { in validate_datum_arrays()
Dkernel_to_cil.c2380 rc = strs_init(&strs, pdb->p_users.nprim); in write_user_decl_rules_to_cil()
2385 for (i=0; i < pdb->p_users.nprim; i++) { in write_user_decl_rules_to_cil()
2410 user = hashtab_search(pdb->p_users.table, name); in write_user_decl_rules_to_cil()
2451 user = hashtab_search(pdb->p_users.table, name); in write_user_decl_rules_to_cil()
2479 user = hashtab_search(pdb->p_users.table, name); in write_user_decl_rules_to_cil()
Dpolicydb.c1069 if (!value_isvalid(usrdatum->s.value, p->p_users.nprim)) in user_index()
1221 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others()
1245 calloc(p->p_users.nprim, sizeof(user_datum_t *)); in policydb_index_others()
1274 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_index_others()
4556 calloc(p->p_users.nprim, sizeof(user_datum_t *)); in policydb_reindex_users()
4569 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_reindex_users()
Dmls.c310 if (!c->user || c->user > p->p_users.nprim) in mls_context_isvalid()
Dkernel_to_conf.c2315 rc = strs_init(&strs, pdb->p_users.nprim); in write_user_decl_rules_to_conf()
2320 for (i=0; i < pdb->p_users.nprim; i++) { in write_user_decl_rules_to_conf()
2336 user = hashtab_search(pdb->p_users.table, name); in write_user_decl_rules_to_conf()
Dservices.c1623 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context()
2158 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
/third_party/selinux/libsepol/tests/
Dtest-expander-users.c41 user = (user_datum_t *) hashtab_search(p->p_users.table, user_name); in check_user_roles()
/third_party/selinux/checkpolicy/
Dmodule_compiler.c567 users_tab = policydbp->p_users.table; in declare_user()
569 users_tab = stack_top->decl->p_users.table; in declare_user()
Dpolicy_define.c3815 p_users. in define_cexpr()
4392 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table, in parse_security_context()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h528 #define p_users symtab[SYM_USERS] macro
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c81 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum()
4027 if (user->s.value < 1 || user->s.value > pdb->p_users.nprim) { in __cil_user_val_array_insert()
4107 policydb->p_user_val_to_name = cil_malloc(sizeof(char *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create()
4108 policydb->user_val_to_struct = cil_malloc(sizeof(user_datum_t *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create()
4109 rc = hashtab_map(policydb->p_users.table, &__cil_user_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
5047 if (hashtab_map(pdb->p_users.table, policydb_user_cache, pdb)) { in cil_binary_create_allocated_pdb()
/third_party/selinux/checkpolicy/test/
Ddismod.c369 for (i = 0; i < p->p_users.nprim; i++) { in display_users()