Lines Matching refs:cil_avrule
1398 int __cil_avrule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1401 uint16_t kind = cil_avrule->rule_kind;
1404 struct cil_list *classperms = cil_avrule->perms.classperms;
1406 if (cil_avrule->rule_kind == CIL_AVRULE_DONTAUDIT && db->disable_dontaudit == CIL_TRUE) {
1412 src = cil_avrule->src;
1413 tgt = cil_avrule->tgt;
1445 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule)
1447 return __cil_avrule_to_avtab(pdb, db, cil_avrule, NULL, CIL_FALSE);
1705 int cil_avrulex_to_hashtable(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrulex, struct cil_args_binary *args)
1763 struct cil_avrule *cil_avrule;
1791 case CIL_AVRULE:
1792 cil_avrule = node->data;
1793 rc = __cil_avrule_to_avtab(pdb, db, cil_avrule, cond_node, cond_flavor);
3504 case CIL_AVRULE:
3506 struct cil_avrule *rule = node->data;
3560 case CIL_AVRULE: {
3561 struct cil_avrule *rule = node->data;
3568 struct cil_avrule *rule = node->data;
4316 static void __cil_print_rule(const char *pad, const char *kind, struct cil_avrule *avrule)
4337 struct cil_avrule *cil_rule = node->data;
4338 struct cil_avrule target;
4340 struct cil_avrule *r2;
4354 avrule_flavor = CIL_AVRULE;
4387 struct cil_avrule *cil_rule = node->data;
4530 static int cil_avrule_from_sepol(policydb_t *pdb, avtab_ptr_t sepol_rule, struct cil_avrule *cil_rule, void *type_value_to_cil[], struct cil_class *class_value_to_cil[], struct cil_perm **perm_value_to_cil[])
4576 struct cil_avrule target;
4597 rc = cil_find_matching_avrule_in_ast(db->ast->root, CIL_AVRULE, &target, matching, CIL_FALSE);