Home
last modified time | relevance | path

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

/external/libsepol/src/
Dusers.c137 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()
Dgenusers.c87 usrdatum = hashtab_search(policydb->p_users.table, q);
112 usrdatum->s.value = ++policydb->p_users.nprim;
114 if (hashtab_insert(policydb->p_users.table,
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.c534 base_user = hashtab_search(state->base->p_users.table, id); in user_copy_callback()
551 new_user->s.value = state->base->p_users.nprim + 1; in user_copy_callback()
553 ret = hashtab_insert(state->base->p_users.table, in user_copy_callback()
559 state->base->p_users.nprim++; in user_copy_callback()
574 (state->dest_decl->p_users.table, new_id, new_user)) { in user_copy_callback()
577 state->dest_decl->p_users.nprim++; in user_copy_callback()
815 dest = hashtab_search(state->base->p_users.table, key); in user_bounds_copy_callback()
1209 usertab = &state->base->p_users; in user_fix_callback()
1211 usertab = &state->dest_decl->p_users; in user_fix_callback()
Dexpand.c586 dest = hashtab_search(state->out->p_users.table, (char *)key); in user_bounds_copy_callback()
953 (user_datum_t *) hashtab_search(state->out->p_users.table, id); in user_copy_callback()
962 state->out->p_users.nprim++; in user_copy_callback()
963 new_user->s.value = state->out->p_users.nprim; in user_copy_callback()
972 ret = hashtab_insert(state->out->p_users.table, in user_copy_callback()
2889 state.usermap = (uint32_t *)calloc(state.base->p_users.nprim, sizeof(uint32_t)); in expand_module()
2959 if (hashtab_map(state.base->p_users.table, user_copy_callback, &state)) in expand_module()
2961 if (hashtab_map(state.base->p_users.table, in expand_module()
3001 (decl->p_users.table, user_copy_callback, &state)) in expand_module()
Dhierarchy.c483 if (hashtab_map(p->p_users.table, check_user_hierarchy_callback, &args)) in hierarchy_check_constraints()
Dpolicydb.c855 if (!usrdatum->s.value || usrdatum->s.value > p->p_users.nprim) in user_index()
995 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, in policydb_index_others()
1019 malloc(p->p_users.nprim * sizeof(user_datum_t *)); in policydb_index_others()
1048 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_index_others()
3856 malloc(p->p_users.nprim * sizeof(user_datum_t *)); in policydb_reindex_users()
3869 if (hashtab_map(p->p_users.table, policydb_user_cache, p)) in policydb_reindex_users()
Dservices.c883 usrdatum = (user_datum_t *) hashtab_search(args->newp->p_users.table, in convert_context()
1308 user = (user_datum_t *) hashtab_search(policydb->p_users.table, in sepol_get_user_sids()
Dmls.c310 if (!c->user || c->user > p->p_users.nprim) in mls_context_isvalid()
/external/libsepol/tests/
Dtest-expander-users.c40 user = (user_datum_t *) hashtab_search(p->p_users.table, user_name); in check_user_roles()
/external/libsepol/include/sepol/policydb/
Dpolicydb.h480 #define p_users symtab[SYM_USERS] macro
/external/checkpolicy/
Dmodule_compiler.c447 users_tab = policydbp->p_users.table; in declare_user()
449 users_tab = stack_top->decl->p_users.table; in declare_user()
Dpolicy_define.c3027 p_users. in define_cexpr()
3612 usrdatum = (user_datum_t *) hashtab_search(policydbp->p_users.table, in parse_security_context()
/external/checkpolicy/test/
Ddismod.c345 for (i = 0; i < p->p_users.nprim; i++) { in display_users()