Lines Matching defs:block

164 	struct avrule_block *block;
385 struct avrule_block *block;
388 for (block = pdb->global; block != NULL; block = block->next) {
389 decl = block->branch_list;
1975 static int class_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2106 static int role_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void *datum, int scope)
2125 // optional block to fail, even if it is never used. However in CIL,
2126 // symbols must be used in order to cause an optional block to fail. So
2238 static int type_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void *datum, int scope)
2245 // optional block to fail, even if it is never used. However in CIL,
2246 // symbols must be used in order to cause an optional block to fail. So
2311 static int user_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2332 if (block->flags & AVRULE_OPTIONAL) {
2362 static int boolean_to_cil(int indent, struct policydb *UNUSED(pdb), struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2380 static int sens_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2424 static int cat_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2991 file_type = "block";
3330 cilmode = "block";
3376 static int (*func_to_cil[SYM_NUM])(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack, char *key, void *datum, int scope) = {
3387 static int typealiases_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack)
3428 static int declared_scopes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack)
3458 rc = func_to_cil[sym](indent, pdb, block, decl_stack, key, datum, scope->scope);
3491 static int required_scopes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack)
3539 rc = func_to_cil[sym](indent, pdb, block, decl_stack, key, datum, SCOPE_REQ);
3557 rc = func_to_cil[args->sym_index](args->indent, args->pdb, args->block, args->decl_stack, key, data, SCOPE_REQ);
3568 static int additive_scopes_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack)
3574 args.block = block;
3641 static int block_to_cil(struct policydb *pdb, struct avrule_block *block, struct stack *stack, int indent)
3648 decl = block->branch_list;
3659 rc = typealiases_to_cil(indent, pdb, block, stack);
3664 rc = declared_scopes_to_cil(indent, pdb, block, stack);
3669 rc = required_scopes_to_cil(indent, pdb, block, stack);
3674 rc = additive_scopes_to_cil(indent, pdb, block, stack);
3725 static int module_block_to_cil(struct policydb *pdb, struct avrule_block *block, struct stack *stack, int *indent)
3731 decl = block->branch_list;
3740 if (block->flags & AVRULE_OPTIONAL) {
3758 rc = block_to_cil(pdb, block, stack, *indent);
3767 static int global_block_to_cil(struct policydb *pdb, struct avrule_block *block, struct stack *stack)
3772 decl = block->branch_list;
3778 log_err("Warning: 'else' not allowed in global block. Dropping from output.");
3785 // global block
3791 rc = block_to_cil(pdb, block, stack, 0);
3803 struct avrule_block *block;
3812 block = pdb->global;
3813 rc = global_block_to_cil(pdb, block, stack);
3818 for (block = block->next; block != NULL; block = block->next) {
3819 rc = module_block_to_cil(pdb, block, stack, &indent);
3836 static int linked_block_to_cil(struct policydb *pdb, struct avrule_block *block, struct stack *stack)
3841 decl = block->branch_list;
3856 rc = block_to_cil(pdb, block, stack, 0);
3872 struct avrule_block *block;
3880 block = pdb->global;
3881 rc = global_block_to_cil(pdb, block, stack);
3886 for (block = block->next; block != NULL; block = block->next) {
3887 rc = linked_block_to_cil(pdb, block, stack);