Home
last modified time | relevance | path

Searched refs:p_roles (Results 1 – 15 of 15) sorted by relevance

/external/libsepol/src/
Droles.c16 *response = (hashtab_search(policydb->p_roles.table, in sepol_role_exists()
29 unsigned int tmp_nroles = policydb->p_roles.nprim; in sepol_role_list()
Dcontext.c44 if (!c->role || c->role > p->p_roles.nprim) in context_is_valid()
177 roldatum = (role_datum_t *) hashtab_search(policydb->p_roles.table, in context_from_record()
Dlink.c356 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()
801 dest = hashtab_search(state->base->p_roles.table, key); in role_bounds_copy_callback()
1105 role_tab = state->base->p_roles.table; in role_fix_callback()
1107 role_tab = state->dest_decl->p_roles.table; in role_fix_callback()
2484 base_role = (role_datum_t *)hashtab_search(state->base->p_roles.table, in populate_decl_roleattributes()
[all …]
Dexpand.c650 dest = hashtab_search(state->out->p_roles.table, (char *)key); in role_bounds_copy_callback()
834 (role_datum_t *)hashtab_search(state->out->p_roles.table, id); in role_fix_callback()
854 state->out->p_roles.table, in role_fix_callback()
899 (role_datum_t *) hashtab_search(state->out->p_roles.table, id); in role_copy_callback()
915 state->out->p_roles.nprim++; in role_copy_callback()
917 new_role->s.value = state->out->p_roles.nprim; in role_copy_callback()
919 ret = hashtab_insert(state->out->p_roles.table, in role_copy_callback()
2457 for (i = 0; i < p->p_roles.nprim++; i++) in role_set_expand()
3004 state.rolemap = (uint32_t *)calloc(state.base->p_roles.nprim, sizeof(uint32_t)); in expand_module()
3058 if (hashtab_map(state.base->p_roles.table, role_copy_callback, &state)) in expand_module()
[all …]
Dgenusers.c164 roldatum = hashtab_search(policydb->p_roles.table, q);
Dusers.c161 roldatum = hashtab_search(policydb->p_roles.table, in sepol_user_modify()
Dhierarchy.c480 if (hashtab_map(p->p_roles.table, check_role_hierarchy_callback, &args)) in hierarchy_check_constraints()
Dpolicydb.c865 if (!role->s.value || role->s.value > p->p_roles.nprim) in role_index()
1039 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others()
1057 malloc(p->p_roles.nprim * sizeof(role_datum_t *)); in policydb_index_others()
1089 if (hashtab_map(p->p_roles.table, policydb_role_cache, p)) in policydb_index_others()
Dservices.c1518 role = (role_datum_t *) hashtab_search(args->newp->p_roles.table, in convert_context()
/external/libsepol/tests/
Dtest-common.c192 role = hashtab_search(decl->p_roles.table, id); in test_role_type_set()
194 role = hashtab_search(p->p_roles.table, id); in test_role_type_set()
/external/checkpolicy/
Dpolicy_define.c1941 role = hashtab_search(policydbp->p_roles.table, id); in define_role_types()
1991 attr = hashtab_search(policydbp->p_roles.table, id); in define_role_attr()
2041 r = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute()
2055 attr = hashtab_search(policydbp->p_roles.table, id); in define_roleattribute()
2190 role = (role_datum_t *) hashtab_search(policydbp->p_roles.table, in define_role_dom()
2260 hashtab_map(policydbp->p_roles.table, in define_role_dom()
2296 rc = hashtab_map(policydbp->p_roles.table, role_val_to_name_helper, &v); in role_val_to_name()
2322 r = hashtab_search(policydbp->p_roles.table, id); in set_roles()
2409 role = hashtab_search(policydbp->p_roles.table, id); in define_role_trans()
3094 p_roles. in define_cexpr()
[all …]
Dmodule_compiler.c242 roles_tab = policydbp->p_roles.table; in declare_role()
244 roles_tab = stack_top->decl->p_roles.table; in declare_role()
569 roles_tab = policydbp->p_roles.table; in get_local_role()
571 roles_tab = stack_top->decl->p_roles.table; in get_local_role()
/external/libsepol/include/sepol/policydb/
Dpolicydb.h482 #define p_roles symtab[SYM_ROLES] macro
/external/checkpolicy/test/
Ddismod.c908 (policydb.p_roles.table, role_display_callback, in main()
/external/libsepol/
DChangeLog53 * Only call role_fix_callback for base.p_roles during expansion.