Lines Matching refs:decl_stack
164 struct stack *decl_stack; member
488 static int is_id_in_scope_with_start(struct policydb *pdb, struct stack *decl_stack, int start, uin… in is_id_in_scope_with_start() argument
501 decl = decl_stack->stack[i]; in is_id_in_scope_with_start()
513 static int is_id_in_ancestor_scope(struct policydb *pdb, struct stack *decl_stack, char *type, uint… in is_id_in_ancestor_scope() argument
515 int start = decl_stack->pos - 1; in is_id_in_ancestor_scope()
517 return is_id_in_scope_with_start(pdb, decl_stack, start, symbol_type, type); in is_id_in_ancestor_scope()
520 static int is_id_in_scope(struct policydb *pdb, struct stack *decl_stack, char *type, uint32_t symb… in is_id_in_scope() argument
522 int start = decl_stack->pos; in is_id_in_scope()
524 return is_id_in_scope_with_start(pdb, decl_stack, start, symbol_type, type); in is_id_in_scope()
1094 static int roletype_role_in_ancestor_to_cil(struct policydb *pdb, struct stack *decl_stack, char *t… in roletype_role_in_ancestor_to_cil() argument
1111 if (!is_id_in_ancestor_scope(pdb, decl_stack, role_node->role_name, SYM_ROLES)) { in roletype_role_in_ancestor_to_cil()
1976 …olicydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in class_to_cil() argument
2109 …truct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void… in role_to_cil() argument
2184 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil()
2219 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil()
2244 …truct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void… in type_to_cil() argument
2258 rc = roletype_role_in_ancestor_to_cil(pdb, decl_stack, key, indent); in type_to_cil()
2317 …struct policydb *pdb, struct avrule_block *block, struct stack *UNUSED(decl_stack), char *key, voi… in user_to_cil() argument
2371 …*UNUSED(pdb), struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in boolean_to_cil() argument
2389 …olicydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in sens_to_cil() argument
2436 …olicydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in cat_to_cil() argument
3365 …ndent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack, char *key, void…
3376 …cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack) in typealiases_to_cil() argument
3382 struct avrule_decl *decl = stack_peek(decl_stack); in typealiases_to_cil()
3412 …opes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack) in declared_scopes_to_cil() argument
3422 struct avrule_decl *decl = stack_peek(decl_stack); in declared_scopes_to_cil()
3445 rc = func_to_cil[sym](indent, pdb, block, decl_stack, key, datum, scope->scope); in declared_scopes_to_cil()
3478 …opes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack) in required_scopes_to_cil() argument
3488 struct avrule_decl *decl = stack_peek(decl_stack); in required_scopes_to_cil()
3529 rc = func_to_cil[sym](indent, pdb, block, decl_stack, key, datum, SCOPE_REQ); in required_scopes_to_cil()
3547 …rc = func_to_cil[args->sym_index](args->indent, args->pdb, args->block, args->decl_stack, key, dat… in additive_scopes_to_cil_map()
3558 …opes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack) in additive_scopes_to_cil() argument
3564 args.decl_stack = decl_stack; in additive_scopes_to_cil()
3566 struct avrule_decl *decl = stack_peek(decl_stack); in additive_scopes_to_cil()