Home | History | Annotate | Download | only in checkpolicy

Lines Matching refs:stack

48 /* keep track of the last item added to the stack */
92 /* reset the scoping stack */
104 /* Given the current parse stack, returns 1 if a declaration would be
107 * current scope stack then this would return a 0.
601 /* Given the current parse stack, returns 1 if a requirement would be
1225 static int is_scope_in_stack(scope_datum_t * scope, scope_stack_t * stack)
1228 if (stack == NULL) {
1231 if (stack->type == 1) {
1232 avrule_decl_t *decl = stack->decl;
1243 /* not within scope of this stack, so try its parent */
1244 return is_scope_in_stack(scope, stack->parent);
1272 scope_stack_t * stack)
1274 if (stack == NULL) {
1277 if (stack->type == 1) {
1278 avrule_decl_t *decl = stack->decl;
1290 /* not within scope of this stack, so try its parent */
1291 return is_perm_in_stack(perm_value, class_value, stack->parent);
1355 * scope stack */
1450 /* once nested conditionals are allowed, do the stack unfolding here */
1482 static int copy_requirements(avrule_decl_t * dest, scope_stack_t * stack)
1485 if (stack == NULL) {
1488 if (stack->type == 1) {
1489 scope_index_t *src_scope = &stack->decl->required;
1527 return copy_requirements(dest, stack->parent);
1560 /* Push a new scope on to the stack and update the 'last' pointer.
1581 /* invalid stack type given */
1591 /* Pop off the most recently added from the stack. Update the 'last'