Home | History | Annotate | Download | only in checkpolicy

Lines Matching defs:stack_top

50 static scope_stack_t *stack_top = NULL;
94 while (stack_top != NULL) {
112 if (stack_top->type != 1 || stack_top->in_else) {
131 avrule_decl_t *decl = stack_top->decl;
240 assert(stack_top->type == 1);
241 if (stack_top->parent == NULL) {
245 roles_tab = stack_top->decl->p_roles.table;
445 assert(stack_top->type == 1);
446 if (stack_top->parent == NULL) {
450 users_tab = stack_top->decl->p_users.table;
519 assert(stack_top->type == 1);
520 if (stack_top->parent == NULL) {
524 types_tab = stack_top->decl->p_types.table;
566 assert(stack_top->type == 1);
568 if (stack_top->parent == NULL) {
572 roles_tab = stack_top->decl->p_roles.table;
608 if (stack_top->type == 1 && !stack_top->in_else) {
626 avrule_decl_t *decl = stack_top->decl;
673 stack_top->require_given = 1;
691 stack_top->require_given = 1;
697 avrule_decl_t *decl = stack_top->decl;
1256 return is_scope_in_stack(scope, stack_top);
1310 stack_top);
1317 avrule_decl_t *decl = stack_top->decl;
1350 avrule_decl_t *decl = stack_top->decl;
1357 assert(stack_top->type == 1);
1359 if (stack_top->last_avrule == NULL) {
1362 stack_top->last_avrule->next = avrule;
1364 stack_top->last_avrule = avrule;
1370 avrule_decl_t *decl = stack_top->decl;
1373 assert(stack_top->type == 1);
1382 avrule_decl_t *decl = stack_top->decl;
1385 stack_top->type == 1);
1394 avrule_decl_t *decl = stack_top->decl;
1397 assert(stack_top->type == 1);
1406 avrule_decl_t *decl = stack_top->decl;
1409 assert(stack_top->type == 1);
1439 stack_top->last_avrule = NULL;
1459 assert(stack_top->type == 1 && stack_top->in_else == 0);
1467 stack_top->decl->next = decl;
1471 decl = stack_top->decl->next;
1475 stack_top->in_else = 1;
1476 stack_top->decl = decl;
1477 stack_top->last_avrule = NULL;
1478 stack_top->require_given = 0;
1537 avrule_decl_t *decl = stack_top->decl;
1538 assert(stack_top->type == 1);
1542 if (copy_requirements(decl, stack_top->parent) == -1) {
1547 if (!stack_top->in_else && !stack_top->require_given) {
1549 && stack_top->parent != NULL) {
1586 s->parent = stack_top;
1588 stack_top = s;
1597 assert(stack_top != NULL);
1598 parent = stack_top->parent;
1602 free(stack_top);
1603 stack_top = parent;