Searched refs:p_users (Results 1 – 15 of 15) sorted by relevance
/external/selinux/libsepol/src/ |
D | users.c | 137 usrdatum = hashtab_search(policydb->p_users.table, in sepol_user_modify() 232 (policydb->p_users.nprim + in sepol_user_modify() 239 (policydb->p_users.nprim + 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, in sepol_user_exists() 309 *response = policydb->p_users.nprim; in sepol_user_count() 326 usrdatum = hashtab_search(policydb->p_users.table, in sepol_user_query() 352 unsigned int nusers = policydb->p_users.nprim; in sepol_user_iterate()
|
D | genusers.c | 87 usrdatum = hashtab_search(policydb->p_users.table, q); 113 usrdatum->s.value = ++policydb->p_users.nprim; 114 if (hashtab_insert(policydb->p_users.table,
|
D | context.c | 47 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()
|
D | link.c | 541 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() 1225 usertab = &state->base->p_users; in user_fix_callback() 1227 usertab = &state->dest_decl->p_users; in user_fix_callback()
|
D | expand.c | 604 dest = hashtab_search(state->out->p_users.table, (char *)key); in user_bounds_copy_callback() 976 (user_datum_t *) hashtab_search(state->out->p_users.table, id); in user_copy_callback() 985 state->out->p_users.nprim++; in user_copy_callback() 986 new_user->s.value = state->out->p_users.nprim; in user_copy_callback() 995 ret = hashtab_insert(state->out->p_users.table, in user_copy_callback() 2986 state.usermap = (uint32_t *)calloc(state.base->p_users.nprim, sizeof(uint32_t)); in expand_module() 3056 if (hashtab_map(state.base->p_users.table, user_copy_callback, &state)) in expand_module() 3058 if (hashtab_map(state.base->p_users.table, in expand_module() 3098 (decl->p_users.table, user_copy_callback, &state)) in expand_module()
|
D | hierarchy.c | 624 hashtab_map(p->p_users.table, bounds_check_user_callback, &args); in bounds_check_users() 690 rc = hashtab_map(p->p_users.table, hierarchy_add_user_callback, &args); in add_hierarchy_callback_template()
|
D | policydb.c | 913 if (!usrdatum->s.value || usrdatum->s.value > p->p_users.nprim) in user_index() 1053 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others() 1077 malloc(p->p_users.nprim * sizeof(user_datum_t *)); in policydb_index_others() 1106 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_index_others() 3961 malloc(p->p_users.nprim * sizeof(user_datum_t *)); in policydb_reindex_users() 3974 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_reindex_users()
|
D | mls.c | 310 if (!c->user || c->user > p->p_users.nprim) in mls_context_isvalid()
|
D | services.c | 1583 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context() 2008 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
|
/external/selinux/libsepol/tests/ |
D | test-expander-users.c | 40 user = (user_datum_t *) hashtab_search(p->p_users.table, user_name); in check_user_roles()
|
/external/selinux/checkpolicy/ |
D | module_compiler.c | 448 users_tab = policydbp->p_users.table; in declare_user() 450 users_tab = stack_top->decl->p_users.table; in declare_user()
|
D | policy_define.c | 3748 p_users. in define_cexpr() 4331 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table, in parse_security_context()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 508 #define p_users symtab[SYM_USERS] macro
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 345 for (i = 0; i < p->p_users.nprim; i++) { in display_users()
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 83 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum() 3739 if (user->s.value < 1 || user->s.value > pdb->p_users.nprim) { in __cil_user_val_array_insert() 3819 policydb->p_user_val_to_name = cil_malloc(sizeof(char *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create() 3820 policydb->user_val_to_struct = cil_malloc(sizeof(user_datum_t *) * policydb->p_users.nprim); in __cil_policydb_val_arrays_create() 3821 rc = hashtab_map(policydb->p_users.table, &__cil_user_val_array_insert, policydb); in __cil_policydb_val_arrays_create()
|