Home | History | Annotate | Download | only in src

Lines Matching defs:base

46 	policydb_t *base;
91 if (!is_id_enabled(id, state->base, SYM_TYPES)) {
159 if (!is_id_enabled(id, state->base, SYM_TYPES)) {
373 if (!is_id_enabled(id, state->base, SYM_CLASSES)) {
484 if (!is_id_enabled((char *)key, state->base, SYM_TYPES))
514 if (!is_id_enabled((char *)key, state->base, SYM_ROLES))
544 if (!is_id_enabled((char *)key, state->base, SYM_USERS))
594 if (!is_id_enabled(state->base->p_type_val_to_name[prival - 1],
595 state->base, SYM_TYPES)) {
667 /* For the role attribute in the base module, escalate its counterpart's
715 * of the base module */
716 base_reg_role_id = state->base->p_role_val_to_name[i];
754 if (!is_id_enabled(id, state->base, SYM_ROLES)) {
901 if (!is_id_enabled(id, state->base, SYM_USERS)) {
984 if (role_set_expand(&user->roles, &tmp_union, state->out, state->base, state->rolemap)) {
1012 if (!is_id_enabled(id, state->base, SYM_BOOLS)) {
1066 if (!is_id_enabled(id, state->base, SYM_LEVELS)) {
1118 if (!is_id_enabled(id, state->base, SYM_CATS)) {
1168 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) {
1173 if (role_set_expand(&cur->new_roles, &new_roles, state->out, state->base, state->rolemap)) {
1237 if (role_set_expand(&cur->roles, &roles, state->out, state->base, state->rolemap)) {
1960 if (cond_normalize_expr(state->base, cn)) {
1967 tmp = cond_node_create(state->base, cn);
2018 for (c = state->base->ocontexts[i]; c; c = c->next) {
2071 for (c = state->base->ocontexts[i]; c; c = c->next) {
2160 for (genfs = state->base->genfs; genfs; genfs = genfs->next) {
2298 int role_set_expand(role_set_t * x, ebitmap_t * r, policydb_t * out, policydb_t * base, uint32_t * rolemap)
2319 assert(base != NULL);
2323 * of the base module */
2324 role = base->role_val_to_struct[i];
2572 avrule_block_t *curblock = state->base->global;
2643 /* set base top avrule block in case there
2646 state->base->global = curblock;
2662 int expand_module_avrules(sepol_handle_t * handle, policydb_t * base,
2672 state.base = base;
2786 * there is only a base since all optionals are dealt with at link time
2787 * the base passed in should be indexed and avrule blocks should be
2791 policydb_t * base, policydb_t * out, int verbose, int check)
2806 discard_tunables(handle, base);
2812 state.base = base;
2816 if (base->policy_type != POLICY_BASE) {
2817 ERR(handle, "Target of expand was not a base policy.");
2824 /* Copy mls state from base to out */
2825 out->mls = base->mls;
2826 out->handle_unknown = base->handle_unknown;
2828 /* Copy target from base to out */
2829 out->target_platform = base->target_platform;
2832 if (ebitmap_cpy(&out->policycaps, &base->policycaps)) {
2838 (uint32_t *) calloc(state.base->p_types.nprim,
2844 state.boolmap = (uint32_t *)calloc(state.base->p_bools.nprim, sizeof(uint32_t));
2850 state.rolemap = (uint32_t *)calloc(state.base->p_roles.nprim, sizeof(uint32_t));
2856 state.usermap = (uint32_t *)calloc(state.base->p_users.nprim, sizeof(uint32_t));
2865 if (hashtab_map(state.base->p_types.table, type_copy_callback, &state)) {
2871 (state.base->p_types.table, attr_convert_callback, &state)) {
2877 (state.base->p_commons.table, common_copy_callback, &state)) {
2884 (state.base->p_classes.table, class_copy_callback, &state)) {
2889 if (hashtab_map(state.base->p_types.table,
2894 if (hashtab_map(state.base->p_types.table, alias_copy_callback, &state))
2904 if (hashtab_map(state.base->p_roles.table, role_copy_callback, &state))
2906 if (hashtab_map(state.base->p_roles.table,
2911 if (hashtab_map(state.base->p_roles.table, role_fix_callback, &state))
2916 if (hashtab_map(state.base->p_levels.table, sens_copy_callback, &state))
2918 if (hashtab_map(state.base->p_cats.table, cats_copy_callback, &state))
2926 if (hashtab_map(state.base->p_users.table, user_copy_callback, &state))
2928 if (hashtab_map(state.base->p_users.table,
2933 if (hashtab_map(state.base->p_bools.table, bool_copy_callback, &state))
2946 for (curblock = state.base->global; curblock != NULL;
2985 (state.base->p_classes.table, constraint_copy_callback, &state)) {