/external/selinux/libsepol/src/ |
D | roles.c | 16 *response = (hashtab_search(policydb->p_roles.table, role) != NULL); in sepol_role_exists() 27 unsigned int tmp_nroles = policydb->p_roles.nprim; in sepol_role_list()
|
D | context.c | 45 if (!c->role || c->role > p->p_roles.nprim) in context_is_valid() 178 roldatum = (role_datum_t *) hashtab_search(policydb->p_roles.table, in context_from_record()
|
D | link.c | 356 base_role = hashtab_search(state->base->p_roles.table, id); in role_copy_callback() 392 new_role->s.value = state->base->p_roles.nprim + 1; in role_copy_callback() 394 ret = hashtab_insert(state->base->p_roles.table, in role_copy_callback() 400 state->base->p_roles.nprim++; in role_copy_callback() 416 (state->dest_decl->p_roles.table, new_id, new_role)) { in role_copy_callback() 419 state->dest_decl->p_roles.nprim++; in role_copy_callback() 802 dest = hashtab_search(state->base->p_roles.table, key); in role_bounds_copy_callback() 1106 role_tab = state->base->p_roles.table; in role_fix_callback() 1108 role_tab = state->dest_decl->p_roles.table; in role_fix_callback() 2494 base_role = (role_datum_t *)hashtab_search(state->base->p_roles.table, in populate_decl_roleattributes() [all …]
|
D | expand.c | 576 dest = hashtab_search(state->out->p_roles.table, (char *)key); in role_bounds_copy_callback() 760 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback() 780 state->out->p_roles.table, in role_fix_callback() 825 (role_datum_t *) hashtab_search(state->out->p_roles.table, id); in role_copy_callback() 841 state->out->p_roles.nprim++; in role_copy_callback() 843 new_role->s.value = state->out->p_roles.nprim; in role_copy_callback() 845 ret = hashtab_insert(state->out->p_roles.table, in role_copy_callback() 2467 for (i = 0; i < p->p_roles.nprim; i++) in role_set_expand() 3035 state.rolemap = (uint32_t *)calloc(state.base->p_roles.nprim, sizeof(uint32_t)); in expand_module() 3089 if (hashtab_map(state.base->p_roles.table, role_copy_callback, &state)) in expand_module() [all …]
|
D | kernel_to_cil.c | 1250 rc = strs_init(&strs, pdb->p_roles.nprim); in write_role_attributes_to_cil() 1255 for (i=0; i < pdb->p_roles.nprim; i++) { in write_role_attributes_to_cil() 2138 rc = strs_init(&strs, pdb->p_roles.nprim); in write_role_decl_rules_to_cil() 2143 for (i=0; i < pdb->p_roles.nprim; i++) { in write_role_decl_rules_to_cil() 2170 role = hashtab_search(pdb->p_roles.table, child); in write_role_decl_rules_to_cil() 2187 role = hashtab_search(pdb->p_roles.table, name); in write_role_decl_rules_to_cil() 2379 rc = strs_init(&role_strs, pdb->p_roles.nprim); in write_user_decl_rules_to_cil()
|
D | genusers.c | 165 roldatum = hashtab_search(policydb->p_roles.table, q);
|
D | hierarchy.c | 545 hashtab_map(p->p_roles.table, bounds_check_role_callback, &args); in bounds_check_roles() 657 rc = hashtab_map(p->p_roles.table, hierarchy_add_role_callback, &args); in add_hierarchy_callback_template()
|
D | users.c | 165 roldatum = hashtab_search(policydb->p_roles.table, roles[i]); in sepol_user_modify()
|
D | kernel_to_conf.c | 1224 rc = strs_init(&strs, pdb->p_roles.nprim); in write_role_attributes_to_conf() 1229 for (i=0; i < pdb->p_roles.nprim; i++) { in write_role_attributes_to_conf() 2102 rc = strs_init(&strs, pdb->p_roles.nprim); in write_role_decl_rules_to_conf() 2108 for (i=1; i < pdb->p_roles.nprim; i++) { in write_role_decl_rules_to_conf() 2133 role = hashtab_search(pdb->p_roles.table, name); in write_role_decl_rules_to_conf()
|
D | policydb.c | 1005 if (!role->s.value || role->s.value > p->p_roles.nprim) in role_index() 1196 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others() 1214 calloc(p->p_roles.nprim, sizeof(role_datum_t *)); in policydb_index_others() 1246 if (hashtab_map(p->p_roles.table, policydb_role_cache, p)) in policydb_index_others()
|
D | services.c | 1658 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context()
|
D | module_to_cil.c | 4061 rc = role_list_create(pdb->p_roles.table); in sepol_module_policydb_to_cil()
|
/external/selinux/libsepol/tests/ |
D | test-common.c | 191 role = hashtab_search(decl->p_roles.table, id); in test_role_type_set() 193 role = hashtab_search(p->p_roles.table, id); in test_role_type_set()
|
/external/selinux/checkpolicy/ |
D | module_compiler.c | 333 roles_tab = policydbp->p_roles.table; in declare_role() 335 roles_tab = stack_top->decl->p_roles.table; in declare_role() 675 roles_tab = policydbp->p_roles.table; in get_local_role() 677 roles_tab = stack_top->decl->p_roles.table; in get_local_role()
|
D | policy_define.c | 2726 role = hashtab_search(policydbp->p_roles.table, id); in define_role_types() 2777 attr = hashtab_search(policydbp->p_roles.table, id); in define_role_attr() 2827 r = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute() 2842 attr = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute() 2977 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table, in define_role_dom() 3047 hashtab_map(policydbp->p_roles.table, in define_role_dom() 3083 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v); in role_val_to_name() 3109 r = hashtab_search(policydbp->p_roles.table, id); in set_roles() 3196 role = hashtab_search(policydbp->p_roles.table, id); in define_role_trans() 3903 p_roles. in define_cexpr() [all …]
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 524 #define p_roles symtab[SYM_ROLES] macro
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 101 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum() 3999 if (role->s.value < 1 || role->s.value > pdb->p_roles.nprim) { in __cil_role_val_array_insert() 4093 policydb->p_role_val_to_name = cil_malloc(sizeof(char *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create() 4094 policydb->role_val_to_struct = cil_malloc(sizeof(role_datum_t *) * policydb->p_roles.nprim); in __cil_policydb_val_arrays_create() 4095 rc = hashtab_map(policydb->p_roles.table, &__cil_role_val_array_insert, policydb); in __cil_policydb_val_arrays_create() 5076 if (hashtab_map(pdb->p_roles.table, policydb_role_cache, pdb)) { in cil_binary_create_allocated_pdb()
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 943 (policydb.p_roles.table, role_display_callback, in main()
|