Lines Matching refs:rc
51 int rc = SEPOL_ERR; in __cil_verify_name() local
58 rc = SEPOL_ERR; in __cil_verify_name()
77 return rc; in __cil_verify_name()
82 int rc = SEPOL_ERR; in __cil_verify_syntax() local
143 return rc; in __cil_verify_syntax()
148 int rc; in cil_verify_expr_syntax() local
199 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_expr_syntax()
200 if (rc != SEPOL_OK) { in cil_verify_expr_syntax()
270 int rc; in cil_verify_constraint_expr_syntax() local
305 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_constraint_expr_syntax()
306 if (rc != SEPOL_OK) { in cil_verify_constraint_expr_syntax()
329 int rc = cil_verify_no_self_reference(datum, i->data); in cil_verify_no_self_reference() local
330 if (rc != SEPOL_OK) { in cil_verify_no_self_reference()
341 int rc = SEPOL_ERR; in __cil_verify_ranges() local
363 return rc; in __cil_verify_ranges()
409 int rc = SEPOL_ERR; in __cil_verify_ordered() local
413 rc = cil_tree_walk(current, __cil_verify_ordered_node_helper, NULL, NULL, &extra_args); in __cil_verify_ordered()
415 return rc; in __cil_verify_ordered()
420 int rc = SEPOL_OK; in __cil_verify_initsids() local
433 rc = SEPOL_ERR; in __cil_verify_initsids()
437 return rc; in __cil_verify_initsids()
467 int rc = SEPOL_OK; in __cil_verify_cats_associated_with_sens() local
492 rc = SEPOL_ERR; in __cil_verify_cats_associated_with_sens()
496 return rc; in __cil_verify_cats_associated_with_sens()
503 int rc = SEPOL_ERR; in __cil_verify_levelrange_sensitivity() local
524 return rc; in __cil_verify_levelrange_sensitivity()
530 int rc = SEPOL_ERR; in __cil_verify_levelrange_cats() local
538 rc = SEPOL_ERR; in __cil_verify_levelrange_cats()
543 rc = __cil_verify_cat_in_cats(item->data, high); in __cil_verify_levelrange_cats()
544 if (rc != SEPOL_OK) { in __cil_verify_levelrange_cats()
553 return rc; in __cil_verify_levelrange_cats()
558 int rc = SEPOL_ERR; in __cil_verify_levelrange() local
560 rc = __cil_verify_levelrange_sensitivity(db, lr->low->sens, lr->high->sens); in __cil_verify_levelrange()
561 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
565 rc = __cil_verify_levelrange_cats(lr->low->cats, lr->high->cats); in __cil_verify_levelrange()
566 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
570 rc = __cil_verify_cats_associated_with_sens(lr->low->sens, lr->low->cats); in __cil_verify_levelrange()
571 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
576 rc = __cil_verify_cats_associated_with_sens(lr->high->sens, lr->high->cats); in __cil_verify_levelrange()
577 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
585 return rc; in __cil_verify_levelrange()
590 int rc = SEPOL_ERR; in __cil_verify_named_levelrange() local
593 rc = __cil_verify_levelrange(db, lr); in __cil_verify_named_levelrange()
594 if (rc != SEPOL_OK) { in __cil_verify_named_levelrange()
601 return rc; in __cil_verify_named_levelrange()
606 int rc = SEPOL_ERR; in __cil_verify_user() local
640 rc = __cil_verify_levelrange(db, user->range); in __cil_verify_user()
641 if (rc != SEPOL_OK) { in __cil_verify_user()
649 return rc; in __cil_verify_user()
654 int rc = SEPOL_ERR; in __cil_verify_role() local
680 return rc; in __cil_verify_role()
685 int rc = SEPOL_ERR; in __cil_verify_type() local
711 return rc; in __cil_verify_type()
716 int rc = SEPOL_ERR; in __cil_verify_context() local
739 rc = SEPOL_ERR; in __cil_verify_context()
744 rc = SEPOL_ERR; in __cil_verify_context()
751 rc = SEPOL_ERR; in __cil_verify_context()
756 rc = SEPOL_ERR; in __cil_verify_context()
762 rc = __cil_verify_levelrange(db, ctx->range); in __cil_verify_context()
763 if (rc != SEPOL_OK) { in __cil_verify_context()
777 rc = SEPOL_ERR; in __cil_verify_context()
788 rc = SEPOL_ERR; in __cil_verify_context()
797 return rc; in __cil_verify_context()
802 int rc = SEPOL_ERR; in __cil_verify_named_context() local
805 rc = __cil_verify_context(db, ctx); in __cil_verify_named_context()
806 if (rc != SEPOL_OK) { in __cil_verify_named_context()
813 return rc; in __cil_verify_named_context()
819 int rc = SEPOL_ERR; in __cil_verify_rule() local
846 rc = cil_complex_symtab_insert(symtab, &ckey, NULL); in __cil_verify_rule()
847 if (rc == SEPOL_EEXIST) { in __cil_verify_rule()
853 rc = SEPOL_ERR; in __cil_verify_rule()
861 return rc; in __cil_verify_rule()
866 int rc = SEPOL_ERR; in __cil_verify_booleanif_helper() local
882 rc = SEPOL_ERR; in __cil_verify_booleanif_helper()
951 rc = SEPOL_OK; in __cil_verify_booleanif_helper()
953 return rc; in __cil_verify_booleanif_helper()
958 int rc = SEPOL_ERR; in __cil_verify_booleanif() local
963 rc = cil_tree_walk(cond_block, __cil_verify_booleanif_helper, NULL, NULL, symtab); in __cil_verify_booleanif()
964 if (rc != SEPOL_OK) { in __cil_verify_booleanif()
977 return rc; in __cil_verify_booleanif()
982 int rc = SEPOL_ERR; in __cil_verify_netifcon() local
989 rc = __cil_verify_context(db, if_ctx); in __cil_verify_netifcon()
990 if (rc != SEPOL_OK) { in __cil_verify_netifcon()
997 rc = __cil_verify_context(db, pkt_ctx); in __cil_verify_netifcon()
998 if (rc != SEPOL_OK) { in __cil_verify_netifcon()
1007 return rc; in __cil_verify_netifcon()
1012 int rc = SEPOL_ERR; in __cil_verify_genfscon() local
1018 rc = __cil_verify_context(db, ctx); in __cil_verify_genfscon()
1019 if (rc != SEPOL_OK) { in __cil_verify_genfscon()
1028 return rc; in __cil_verify_genfscon()
1033 int rc = SEPOL_ERR; in __cil_verify_filecon() local
1038 rc = SEPOL_OK; in __cil_verify_filecon()
1044 rc = __cil_verify_context(db, ctx); in __cil_verify_filecon()
1045 if (rc != SEPOL_OK) { in __cil_verify_filecon()
1055 return rc; in __cil_verify_filecon()
1060 int rc = SEPOL_ERR; in __cil_verify_nodecon() local
1066 rc = __cil_verify_context(db, ctx); in __cil_verify_nodecon()
1067 if (rc != SEPOL_OK) { in __cil_verify_nodecon()
1076 return rc; in __cil_verify_nodecon()
1081 int rc = SEPOL_ERR; in __cil_verify_portcon() local
1087 rc = __cil_verify_context(db, ctx); in __cil_verify_portcon()
1088 if (rc != SEPOL_OK) { in __cil_verify_portcon()
1097 return rc; in __cil_verify_portcon()
1102 int rc = SEPOL_ERR; in __cil_verify_pirqcon() local
1108 rc = __cil_verify_context(db, ctx); in __cil_verify_pirqcon()
1109 if (rc != SEPOL_OK) { in __cil_verify_pirqcon()
1118 return rc; in __cil_verify_pirqcon()
1123 int rc = SEPOL_ERR; in __cil_verify_iomemcon() local
1129 rc = __cil_verify_context(db, ctx); in __cil_verify_iomemcon()
1130 if (rc != SEPOL_OK) { in __cil_verify_iomemcon()
1139 return rc; in __cil_verify_iomemcon()
1144 int rc = SEPOL_ERR; in __cil_verify_ioportcon() local
1150 rc = __cil_verify_context(db, ctx); in __cil_verify_ioportcon()
1151 if (rc != SEPOL_OK) { in __cil_verify_ioportcon()
1160 return rc; in __cil_verify_ioportcon()
1165 int rc = SEPOL_ERR; in __cil_verify_pcidevicecon() local
1171 rc = __cil_verify_context(db, ctx); in __cil_verify_pcidevicecon()
1172 if (rc != SEPOL_OK) { in __cil_verify_pcidevicecon()
1181 return rc; in __cil_verify_pcidevicecon()
1186 int rc = SEPOL_ERR; in __cil_verify_devicetreecon() local
1192 rc = __cil_verify_context(db, ctx); in __cil_verify_devicetreecon()
1193 if (rc != SEPOL_OK) { in __cil_verify_devicetreecon()
1202 return rc; in __cil_verify_devicetreecon()
1207 int rc = SEPOL_ERR; in __cil_verify_fsuse() local
1213 rc = __cil_verify_context(db, ctx); in __cil_verify_fsuse()
1214 if (rc != SEPOL_OK) { in __cil_verify_fsuse()
1223 return rc; in __cil_verify_fsuse()
1228 int rc = SEPOL_ERR; in __cil_verify_class() local
1259 return rc; in __cil_verify_class()
1264 int rc; in __cil_verify_policycap() local
1267 rc = sepol_polcap_getnum((const char*)polcap->datum.name); in __cil_verify_policycap()
1268 if (rc == SEPOL_ERR) { in __cil_verify_policycap()
1277 return rc; in __cil_verify_policycap()
1282 int rc = SEPOL_ERR; in __cil_verify_helper() local
1306 rc = SEPOL_OK; in __cil_verify_helper()
1313 rc = SEPOL_OK; in __cil_verify_helper()
1321 rc = __cil_verify_user(db, node); in __cil_verify_helper()
1325 rc = SEPOL_OK; in __cil_verify_helper()
1328 rc = __cil_verify_role(node); in __cil_verify_helper()
1331 rc = __cil_verify_type(node); in __cil_verify_helper()
1335 rc = SEPOL_OK; in __cil_verify_helper()
1340 rc = SEPOL_ERR; in __cil_verify_helper()
1343 rc = SEPOL_OK; in __cil_verify_helper()
1349 rc = SEPOL_ERR; in __cil_verify_helper()
1352 rc = SEPOL_OK; in __cil_verify_helper()
1356 rc = SEPOL_OK; //TODO __cil_verify_rule doesn't work quite right in __cil_verify_helper()
1360 rc = SEPOL_OK; //TODO __cil_verify_rule doesn't work quite right in __cil_verify_helper()
1364 rc = __cil_verify_booleanif(node, csymtab); in __cil_verify_helper()
1368 rc = __cil_verify_named_levelrange(db, node); in __cil_verify_helper()
1371 rc = __cil_verify_class(node); in __cil_verify_helper()
1374 rc = __cil_verify_policycap(node); in __cil_verify_helper()
1377 rc = SEPOL_OK; in __cil_verify_helper()
1385 rc = __cil_verify_named_context(db, node); in __cil_verify_helper()
1388 rc = __cil_verify_netifcon(db, node); in __cil_verify_helper()
1391 rc = __cil_verify_genfscon(db, node); in __cil_verify_helper()
1394 rc = __cil_verify_filecon(db, node); in __cil_verify_helper()
1397 rc = __cil_verify_nodecon(db, node); in __cil_verify_helper()
1400 rc = __cil_verify_portcon(db, node); in __cil_verify_helper()
1403 rc = __cil_verify_pirqcon(db, node); in __cil_verify_helper()
1406 rc = __cil_verify_iomemcon(db, node); in __cil_verify_helper()
1409 rc = __cil_verify_ioportcon(db, node); in __cil_verify_helper()
1412 rc = __cil_verify_pcidevicecon(db, node); in __cil_verify_helper()
1415 rc = __cil_verify_devicetreecon(db, node); in __cil_verify_helper()
1418 rc = __cil_verify_fsuse(db, node); in __cil_verify_helper()
1421 rc = SEPOL_OK; in __cil_verify_helper()
1424 rc = SEPOL_OK; in __cil_verify_helper()
1430 rc = SEPOL_ERR; in __cil_verify_helper()
1434 return rc; in __cil_verify_helper()
1439 int rc = SEPOL_ERR; in __cil_verify_classperms() local
1452 rc = SEPOL_ERR; in __cil_verify_classperms()
1455 rc = __cil_verify_classperms(cmp->classperms, orig); in __cil_verify_classperms()
1456 if (rc != SEPOL_OK) { in __cil_verify_classperms()
1465 rc = SEPOL_ERR; in __cil_verify_classperms()
1468 rc = __cil_verify_classperms(cp->classperms, orig); in __cil_verify_classperms()
1469 if (rc != SEPOL_OK) { in __cil_verify_classperms()
1478 return rc; in __cil_verify_classperms()
1483 int rc = SEPOL_ERR; in __cil_verify_classpermission() local
1486 rc = __cil_verify_classperms(cp->classperms, &cp->datum); in __cil_verify_classpermission()
1487 if (rc != SEPOL_OK) { in __cil_verify_classpermission()
1489 return rc; in __cil_verify_classpermission()
1498 int rc; member
1503 int rc = SEPOL_ERR; in __verify_map_perm_classperms() local
1507 rc = __cil_verify_classperms(cmp->classperms, &cmp->datum); in __verify_map_perm_classperms()
1508 if (rc != SEPOL_OK) { in __verify_map_perm_classperms()
1510 map_args->rc = SEPOL_ERR; in __verify_map_perm_classperms()
1523 map_args.rc = SEPOL_OK; in __cil_verify_map_class()
1527 if (map_args.rc != SEPOL_OK) { in __cil_verify_map_class()
1536 int rc = SEPOL_ERR; in __cil_verify_no_classperms_loop_helper() local
1540 rc = SEPOL_OK; in __cil_verify_no_classperms_loop_helper()
1547 rc = SEPOL_OK; in __cil_verify_no_classperms_loop_helper()
1553 rc = __cil_verify_map_class(node); in __cil_verify_no_classperms_loop_helper()
1556 rc = __cil_verify_classpermission(node); in __cil_verify_no_classperms_loop_helper()
1559 rc = SEPOL_OK; in __cil_verify_no_classperms_loop_helper()
1564 return rc; in __cil_verify_no_classperms_loop_helper()
1569 int rc = SEPOL_ERR; in cil_verify_no_classperms_loop() local
1571 rc = cil_tree_walk(db->ast->root, __cil_verify_no_classperms_loop_helper, NULL, NULL, NULL); in cil_verify_no_classperms_loop()
1572 if (rc != SEPOL_OK) { in cil_verify_no_classperms_loop()
1578 return rc; in cil_verify_no_classperms_loop()