Lines Matching defs:cp
1318 int __cil_avrule_expand_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_classperms *cp, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1326 rc = __cil_get_sepol_class_datum(pdb, DATUM(cp->class), &sepol_class);
1329 rc = __cil_perms_to_datum(cp->perms, sepol_class, &data);
1366 struct cil_classperms *cp = curr->data;
1367 if (FLAVOR(cp->class) == CIL_CLASS) {
1368 rc = __cil_avrule_expand_helper(pdb, kind, src, tgt, cp, cond_node, cond_flavor);
1374 cil_list_for_each(i, cp->perms) {
1384 struct cil_classpermission *cp = cp_set->set;
1385 rc = __cil_avrule_expand(pdb, kind, src, tgt, cp->classperms, cond_node, cond_flavor);
2629 struct cil_classperms *cp = curr->data;
2630 if (FLAVOR(cp->class) == CIL_CLASS) {
2631 rc = cil_constrain_to_policydb_helper(pdb, db, DATUM(cp->class), cp->perms, expr);
2637 cil_list_for_each(i, cp->perms) {
2647 struct cil_classpermission *cp = cp_set->set;
2648 rc = cil_constrain_expand(pdb, db, cp->classperms, expr);
4101 struct cil_classperms *cp = i->data;
4102 if (FLAVOR(cp->class) == CIL_CLASS) {
4107 rc = __cil_get_sepol_class_datum(pdb, DATUM(cp->class), &sepol_class);
4110 rc = __cil_perms_to_datum(cp->perms, sepol_class, &data);
4123 cil_list_for_each(j, cp->perms) {
4133 struct cil_classpermission *cp = cp_set->set;
4134 rc = __cil_rule_to_sepol_class_perms(pdb, cp->classperms, sepol_class_perms);
4279 struct cil_classperms *cp = i1->data;
4280 cil_log(CIL_ERR,"(%s (", DATUM(cp->class)->fqn);
4281 cil_list_for_each(i2, cp->perms) {
4283 if (i2 != cp->perms->tail) {
4501 struct cil_classperms *cp;
4506 cil_classperms_init(&cp);
4508 cp->class = class_value_to_cil[class];
4509 if (!cp->class) goto exit;
4511 cil_list_init(&cp->perms, CIL_PERM);
4517 cil_list_append(cp->perms, CIL_PERM, perm);
4521 cil_list_append(cp_list, CIL_CLASSPERMS, cp);