Home | History | Annotate | Download | only in src

Lines Matching refs:cur

61 	policy_module_t *cur;
132 policy_module_t *mod = state->cur;
263 hashtab_search(state->cur->policy->p_classes_scope.table,
319 state->cur->map[SYM_CLASSES][cladatum->s.value - 1] =
422 state->cur->map[SYM_ROLES][role->s.value - 1] = base_role->s.value;
521 state->cur->map[SYM_TYPES][type->s.value - 1] = base_type->s.value;
587 state->cur->map[SYM_USERS][user->s.value - 1] = base_user->s.value;
649 scope = hashtab_search(state->cur->policy->p_bools_scope.table, id);
658 state->cur->map[SYM_BOOLS][booldatum->s.value - 1] = base_bool->s.value;
680 hashtab_search(state->cur->policy->p_sens_scope.table, id);
703 state->cur->map[SYM_LEVELS][level->level->sens - 1] =
721 scope = hashtab_search(state->cur->policy->p_cat_scope.table, id);
745 state->cur->map[SYM_CATS][cat->s.value - 1] = base_cat->s.value;
771 bounds_val = state->cur->map[SYM_TYPES][type->bounds - 1];
800 bounds_val = state->cur->map[SYM_ROLES][role->bounds - 1];
829 bounds_val = state->cur->map[SYM_USERS][user->bounds - 1];
859 policy_module_t *mod = state->cur;
1100 policy_module_t *mod = state->cur;
1168 policy_module_t *mod = state->cur;
1219 policy_module_t *mod = state->cur;
1264 avrule_t *cur, *new_rule = NULL, *tail;
1272 cur = list;
1273 while (cur) {
1279 new_rule->specified = cur->specified;
1280 new_rule->flags = cur->flags;
1282 (&cur->stypes, &new_rule->stypes, module, state) == -1
1283 || type_set_convert(&cur->ttypes, &new_rule->ttypes, module,
1288 cur_perm = cur->perms;
1329 if (cur->xperms) {
1333 memcpy(new_rule->xperms, cur->xperms,
1337 new_rule->line = cur->line;
1338 new_rule->source_line = cur->source_line;
1339 if (cur->source_filename) {
1340 new_rule->source_filename = strdup(cur->source_filename);
1345 cur = cur->next;
1367 role_trans_rule_t *cur, *new_rule = NULL, *tail;
1371 cur = list;
1376 while (cur) {
1385 (&cur->roles, &new_rule->roles, module, state)
1386 || type_set_or_convert(&cur->types, &new_rule->types,
1391 ebitmap_for_each_bit(&cur->classes, cnode, i) {
1403 new_rule->new_role = module->map[SYM_ROLES][cur->new_role - 1];
1411 cur = cur->next;
1424 role_allow_rule_t *cur, *new_rule = NULL, *tail;
1426 cur = list;
1432 while (cur) {
1441 (&cur->roles, &new_rule->roles, module, state)
1442 || role_set_or_convert(&cur->new_roles,
1453 cur = cur->next;
1467 filename_trans_rule_t *cur, *new_rule, *tail;
1469 cur = list;
1474 while (cur) {
1487 new_rule->name = strdup(cur->name);
1491 if (type_set_or_convert(&cur->stypes, &new_rule->stypes, module, state) ||
1492 type_set_or_convert(&cur->ttypes, &new_rule->ttypes, module, state))
1495 new_rule->tclass = module->map[SYM_CLASSES][cur->tclass - 1];
1496 new_rule->otype = module->map[SYM_TYPES][cur->otype - 1];
1498 cur = cur->next;
1559 cond_node_t *cur, *new_node = NULL, *tail;
1565 cur = list;
1566 while (cur) {
1573 new_node->cur_state = cur->cur_state;
1574 new_node->expr = cond_copy_expr(cur->expr);
1587 new_node->nbools = cur->nbools;
1589 for (i = 0; i < min(cur->nbools, COND_MAX_BOOLS); i++) {
1591 module->map[SYM_BOOLS][cur->bool_ids[i] - 1];
1595 new_node->expr_pre_comp = cur->expr_pre_comp;
1598 (cur->avtrue_list, &new_node->avtrue_list, module, state)
1599 || copy_avrule_list(cur->avfalse_list,
1611 cur = cur->next;
1846 uint32_t *avdecl_map = state->cur->avdecl_map;
1932 avrule_block_t *cur;
1933 state->cur = module;
1943 for (cur = module->policy->global; cur != NULL; cur = cur->next) {
1944 ret = copy_avrule_block(state, module, cur);
2090 avrule_block_t *cur;
2094 for (cur = p->global; cur != NULL; cur = cur->next) {
2095 if (cur->enabled != NULL)
2098 ret = is_decl_requires_met(state, cur->branch_list, &req);
2102 const char *mod_name = cur->branch_list->module_name ?
2103 cur->branch_list->module_name : "BASE";
2115 if (cur->flags & AVRULE_OPTIONAL) {
2118 mod_name, cur->branch_list->decl_id,
2124 mod_name, cur->branch_list->decl_id,
2129 if (cur->flags & AVRULE_OPTIONAL) {
2132 mod_name, cur->branch_list->decl_id,
2142 mod_name, cur->branch_list->decl_id,
2157 avrule_block_t * cur,
2161 const char *mod_name = cur->branch_list->module_name ?
2162 cur->branch_list->module_name : "BASE";
2307 avrule_block_t *cur;
2334 for (cur = module->policy->global; cur != NULL; cur = cur->next) {
2336 for (decl = cur->branch_list; decl != NULL; decl = decl->next) {
2361 avrule_block_t *cur = state->base->global;
2362 assert(cur != NULL);
2367 while (cur != NULL) {
2369 for (decl = cur->branch_list; decl != NULL; decl = decl->next) {
2374 state->last_avrule_block = cur;
2375 cur = cur->next;
2396 cur = state->base->global;
2397 while (cur != NULL) {
2398 avrule_decl_t *decl = cur->branch_list;
2405 cur = cur->next;
2606 state.cur = modules[i];
2619 state.cur = modules[i];
2636 state.cur = modules[i];