Lines Matching refs:decl_stack
165 struct stack *decl_stack; member
489 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
502 decl = decl_stack->stack[i]; in is_id_in_scope_with_start()
514 static int is_id_in_ancestor_scope(struct policydb *pdb, struct stack *decl_stack, char *type, uint… in is_id_in_ancestor_scope() argument
516 int start = decl_stack->pos - 1; in is_id_in_ancestor_scope()
518 return is_id_in_scope_with_start(pdb, decl_stack, start, symbol_type, type); in is_id_in_ancestor_scope()
521 static int is_id_in_scope(struct policydb *pdb, struct stack *decl_stack, char *type, uint32_t symb… in is_id_in_scope() argument
523 int start = decl_stack->pos; in is_id_in_scope()
525 return is_id_in_scope_with_start(pdb, decl_stack, start, symbol_type, type); in is_id_in_scope()
1082 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
1099 if (!is_id_in_ancestor_scope(pdb, decl_stack, role_node->role_name, SYM_ROLES)) { in roletype_role_in_ancestor_to_cil()
1957 …olicydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in class_to_cil() argument
2088 …truct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void… in role_to_cil() argument
2163 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil()
2195 if (is_id_in_scope(pdb, decl_stack, types[j], SYM_TYPES)) { in role_to_cil()
2220 …truct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void… in type_to_cil() argument
2234 rc = roletype_role_in_ancestor_to_cil(pdb, decl_stack, key, indent); in type_to_cil()
2293 …struct policydb *pdb, struct avrule_block *block, struct stack *UNUSED(decl_stack), char *key, voi… in user_to_cil() argument
2344 …*UNUSED(pdb), struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in boolean_to_cil() argument
2362 …olicydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in sens_to_cil() argument
2406 …olicydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, voi… in cat_to_cil() argument
3329 …ndent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack, char *key, void…
3340 …cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack) in typealiases_to_cil() argument
3346 struct avrule_decl *decl = stack_peek(decl_stack); in typealiases_to_cil()
3376 …opes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack) in declared_scopes_to_cil() argument
3386 struct avrule_decl *decl = stack_peek(decl_stack); in declared_scopes_to_cil()
3406 rc = func_to_cil[sym](indent, pdb, block, decl_stack, key, datum, scope->scope); in declared_scopes_to_cil()
3439 …opes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack) in required_scopes_to_cil() argument
3449 struct avrule_decl *decl = stack_peek(decl_stack); in required_scopes_to_cil()
3487 rc = func_to_cil[sym](indent, pdb, block, decl_stack, key, datum, SCOPE_REQ); in required_scopes_to_cil()
3505 …rc = func_to_cil[args->sym_index](args->indent, args->pdb, args->block, args->decl_stack, key, dat… in additive_scopes_to_cil_map()
3516 …opes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack) in additive_scopes_to_cil() argument
3522 args.decl_stack = decl_stack; in additive_scopes_to_cil()
3524 struct avrule_decl *decl = stack_peek(decl_stack); in additive_scopes_to_cil()