• Home
  • Raw
  • Download

Lines Matching refs:rc

52 	int rc = SEPOL_ERR;  in __cil_verify_name()  local
65 rc = SEPOL_ERR; in __cil_verify_name()
84 return rc; in __cil_verify_name()
89 int rc = SEPOL_ERR; in __cil_verify_syntax() local
150 return rc; in __cil_verify_syntax()
155 int rc; in cil_verify_expr_syntax() local
206 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_expr_syntax()
207 if (rc != SEPOL_OK) { in cil_verify_expr_syntax()
277 int rc; in cil_verify_constraint_expr_syntax() local
312 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_constraint_expr_syntax()
313 if (rc != SEPOL_OK) { in cil_verify_constraint_expr_syntax()
336 int rc = cil_verify_no_self_reference(datum, i->data); in cil_verify_no_self_reference() local
337 if (rc != SEPOL_OK) { in cil_verify_no_self_reference()
348 int rc = SEPOL_ERR; in __cil_verify_ranges() local
370 return rc; in __cil_verify_ranges()
416 int rc = SEPOL_ERR; in __cil_verify_ordered() local
420 rc = cil_tree_walk(current, __cil_verify_ordered_node_helper, NULL, NULL, &extra_args); in __cil_verify_ordered()
422 return rc; in __cil_verify_ordered()
427 int rc = SEPOL_OK; in __cil_verify_initsids() local
440 rc = SEPOL_ERR; in __cil_verify_initsids()
444 return rc; in __cil_verify_initsids()
474 int rc = SEPOL_OK; in __cil_verify_cats_associated_with_sens() local
499 rc = SEPOL_ERR; in __cil_verify_cats_associated_with_sens()
503 return rc; in __cil_verify_cats_associated_with_sens()
510 int rc = SEPOL_ERR; in __cil_verify_levelrange_sensitivity() local
531 return rc; in __cil_verify_levelrange_sensitivity()
537 int rc = SEPOL_ERR; in __cil_verify_levelrange_cats() local
545 rc = SEPOL_ERR; in __cil_verify_levelrange_cats()
550 rc = __cil_verify_cat_in_cats(item->data, high); in __cil_verify_levelrange_cats()
551 if (rc != SEPOL_OK) { in __cil_verify_levelrange_cats()
560 return rc; in __cil_verify_levelrange_cats()
565 int rc = SEPOL_ERR; in __cil_verify_levelrange() local
567 rc = __cil_verify_levelrange_sensitivity(db, lr->low->sens, lr->high->sens); in __cil_verify_levelrange()
568 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
572 rc = __cil_verify_levelrange_cats(lr->low->cats, lr->high->cats); in __cil_verify_levelrange()
573 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
577 rc = __cil_verify_cats_associated_with_sens(lr->low->sens, lr->low->cats); in __cil_verify_levelrange()
578 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
583 rc = __cil_verify_cats_associated_with_sens(lr->high->sens, lr->high->cats); in __cil_verify_levelrange()
584 if (rc != SEPOL_OK) { in __cil_verify_levelrange()
592 return rc; in __cil_verify_levelrange()
597 int rc = SEPOL_ERR; in __cil_verify_named_levelrange() local
600 rc = __cil_verify_levelrange(db, lr); in __cil_verify_named_levelrange()
601 if (rc != SEPOL_OK) { in __cil_verify_named_levelrange()
608 return rc; in __cil_verify_named_levelrange()
613 int rc = SEPOL_ERR; in __cil_verify_user_pre_eval() local
648 return rc; in __cil_verify_user_pre_eval()
653 int rc = SEPOL_ERR; in __cil_verify_user_post_eval() local
658 rc = __cil_verify_levelrange(db, user->range); in __cil_verify_user_post_eval()
659 if (rc != SEPOL_OK) { in __cil_verify_user_post_eval()
667 return rc; in __cil_verify_user_post_eval()
672 int rc = SEPOL_ERR; in __cil_verify_role() local
698 return rc; in __cil_verify_role()
703 int rc = SEPOL_ERR; in __cil_verify_type() local
729 return rc; in __cil_verify_type()
734 int rc = SEPOL_ERR; in __cil_verify_context() local
749 rc = SEPOL_ERR; in __cil_verify_context()
754 rc = SEPOL_ERR; in __cil_verify_context()
761 rc = SEPOL_ERR; in __cil_verify_context()
766 rc = SEPOL_ERR; in __cil_verify_context()
772 rc = __cil_verify_levelrange(db, ctx->range); in __cil_verify_context()
773 if (rc != SEPOL_OK) { in __cil_verify_context()
787 rc = SEPOL_ERR; in __cil_verify_context()
798 rc = SEPOL_ERR; in __cil_verify_context()
807 return rc; in __cil_verify_context()
812 int rc = SEPOL_ERR; in __cil_verify_named_context() local
815 rc = __cil_verify_context(db, ctx); in __cil_verify_named_context()
816 if (rc != SEPOL_OK) { in __cil_verify_named_context()
823 return rc; in __cil_verify_named_context()
829 int rc = SEPOL_ERR; in __cil_verify_rule() local
856 rc = cil_complex_symtab_insert(symtab, &ckey, NULL); in __cil_verify_rule()
857 if (rc == SEPOL_EEXIST) { in __cil_verify_rule()
862 rc = SEPOL_ERR; in __cil_verify_rule()
870 return rc; in __cil_verify_rule()
875 int rc = SEPOL_ERR; in __cil_verify_booleanif_helper() local
889 rc = SEPOL_ERR; in __cil_verify_booleanif_helper()
956 rc = SEPOL_OK; in __cil_verify_booleanif_helper()
958 return rc; in __cil_verify_booleanif_helper()
963 int rc = SEPOL_ERR; in __cil_verify_booleanif() local
968 rc = cil_tree_walk(cond_block, __cil_verify_booleanif_helper, NULL, NULL, symtab); in __cil_verify_booleanif()
969 if (rc != SEPOL_OK) { in __cil_verify_booleanif()
982 return rc; in __cil_verify_booleanif()
987 int rc = SEPOL_ERR; in __cil_verify_netifcon() local
994 rc = __cil_verify_context(db, if_ctx); in __cil_verify_netifcon()
995 if (rc != SEPOL_OK) { in __cil_verify_netifcon()
1002 rc = __cil_verify_context(db, pkt_ctx); in __cil_verify_netifcon()
1003 if (rc != SEPOL_OK) { in __cil_verify_netifcon()
1012 return rc; in __cil_verify_netifcon()
1017 int rc = SEPOL_ERR; in __cil_verify_ibendportcon() local
1023 rc = __cil_verify_context(db, ctx); in __cil_verify_ibendportcon()
1024 if (rc != SEPOL_OK) in __cil_verify_ibendportcon()
1032 return rc; in __cil_verify_ibendportcon()
1037 int rc = SEPOL_ERR; in __cil_verify_genfscon() local
1043 rc = __cil_verify_context(db, ctx); in __cil_verify_genfscon()
1044 if (rc != SEPOL_OK) { in __cil_verify_genfscon()
1053 return rc; in __cil_verify_genfscon()
1058 int rc = SEPOL_ERR; in __cil_verify_filecon() local
1063 rc = SEPOL_OK; in __cil_verify_filecon()
1069 rc = __cil_verify_context(db, ctx); in __cil_verify_filecon()
1070 if (rc != SEPOL_OK) { in __cil_verify_filecon()
1079 return rc; in __cil_verify_filecon()
1084 int rc = SEPOL_ERR; in __cil_verify_nodecon() local
1090 rc = __cil_verify_context(db, ctx); in __cil_verify_nodecon()
1091 if (rc != SEPOL_OK) { in __cil_verify_nodecon()
1100 return rc; in __cil_verify_nodecon()
1105 int rc = SEPOL_ERR; in __cil_verify_ibpkeycon() local
1111 rc = __cil_verify_context(db, ctx); in __cil_verify_ibpkeycon()
1112 if (rc != SEPOL_OK) in __cil_verify_ibpkeycon()
1120 return rc; in __cil_verify_ibpkeycon()
1125 int rc = SEPOL_ERR; in __cil_verify_portcon() local
1131 rc = __cil_verify_context(db, ctx); in __cil_verify_portcon()
1132 if (rc != SEPOL_OK) { in __cil_verify_portcon()
1141 return rc; in __cil_verify_portcon()
1146 int rc = SEPOL_ERR; in __cil_verify_pirqcon() local
1152 rc = __cil_verify_context(db, ctx); in __cil_verify_pirqcon()
1153 if (rc != SEPOL_OK) { in __cil_verify_pirqcon()
1162 return rc; in __cil_verify_pirqcon()
1167 int rc = SEPOL_ERR; in __cil_verify_iomemcon() local
1173 rc = __cil_verify_context(db, ctx); in __cil_verify_iomemcon()
1174 if (rc != SEPOL_OK) { in __cil_verify_iomemcon()
1183 return rc; in __cil_verify_iomemcon()
1188 int rc = SEPOL_ERR; in __cil_verify_ioportcon() local
1194 rc = __cil_verify_context(db, ctx); in __cil_verify_ioportcon()
1195 if (rc != SEPOL_OK) { in __cil_verify_ioportcon()
1204 return rc; in __cil_verify_ioportcon()
1209 int rc = SEPOL_ERR; in __cil_verify_pcidevicecon() local
1215 rc = __cil_verify_context(db, ctx); in __cil_verify_pcidevicecon()
1216 if (rc != SEPOL_OK) { in __cil_verify_pcidevicecon()
1225 return rc; in __cil_verify_pcidevicecon()
1230 int rc = SEPOL_ERR; in __cil_verify_devicetreecon() local
1236 rc = __cil_verify_context(db, ctx); in __cil_verify_devicetreecon()
1237 if (rc != SEPOL_OK) { in __cil_verify_devicetreecon()
1246 return rc; in __cil_verify_devicetreecon()
1251 int rc = SEPOL_ERR; in __cil_verify_fsuse() local
1257 rc = __cil_verify_context(db, ctx); in __cil_verify_fsuse()
1258 if (rc != SEPOL_OK) { in __cil_verify_fsuse()
1267 return rc; in __cil_verify_fsuse()
1272 int rc; in __cil_verify_permissionx() local
1285 rc = SEPOL_ERR; in __cil_verify_permissionx()
1293 rc = cil_symtab_get_datum(&class->perms, kind_str, &perm_datum); in __cil_verify_permissionx()
1294 if (rc == SEPOL_ENOENT) { in __cil_verify_permissionx()
1296 rc = cil_symtab_get_datum(&class->common->perms, kind_str, &perm_datum); in __cil_verify_permissionx()
1299 if (rc == SEPOL_ENOENT) { in __cil_verify_permissionx()
1301 rc = SEPOL_ERR; in __cil_verify_permissionx()
1307 rc = SEPOL_OK; in __cil_verify_permissionx()
1314 return rc; in __cil_verify_permissionx()
1325 int rc = SEPOL_ERR; in __cil_verify_class() local
1356 return rc; in __cil_verify_class()
1361 int rc; in __cil_verify_policycap() local
1364 rc = sepol_polcap_getnum((const char*)polcap->datum.name); in __cil_verify_policycap()
1365 if (rc == SEPOL_ERR) { in __cil_verify_policycap()
1373 return rc; in __cil_verify_policycap()
1378 int rc = SEPOL_ERR; in __cil_verify_helper() local
1402 rc = SEPOL_OK; in __cil_verify_helper()
1409 rc = SEPOL_OK; in __cil_verify_helper()
1417 rc = __cil_verify_user_post_eval(db, node); in __cil_verify_helper()
1421 rc = SEPOL_OK; in __cil_verify_helper()
1424 rc = __cil_verify_role(node); in __cil_verify_helper()
1427 rc = __cil_verify_type(node); in __cil_verify_helper()
1431 rc = SEPOL_OK; in __cil_verify_helper()
1436 rc = SEPOL_ERR; in __cil_verify_helper()
1439 rc = SEPOL_OK; in __cil_verify_helper()
1445 rc = SEPOL_ERR; in __cil_verify_helper()
1448 rc = SEPOL_OK; in __cil_verify_helper()
1452 rc = SEPOL_OK; //TODO __cil_verify_rule doesn't work quite right in __cil_verify_helper()
1456 rc = SEPOL_OK; //TODO __cil_verify_rule doesn't work quite right in __cil_verify_helper()
1460 rc = __cil_verify_booleanif(node, csymtab); in __cil_verify_helper()
1464 rc = __cil_verify_named_levelrange(db, node); in __cil_verify_helper()
1467 rc = __cil_verify_class(node); in __cil_verify_helper()
1470 rc = __cil_verify_policycap(node); in __cil_verify_helper()
1473 rc = SEPOL_OK; in __cil_verify_helper()
1481 rc = __cil_verify_named_context(db, node); in __cil_verify_helper()
1484 rc = __cil_verify_netifcon(db, node); in __cil_verify_helper()
1487 rc = __cil_verify_genfscon(db, node); in __cil_verify_helper()
1490 rc = __cil_verify_filecon(db, node); in __cil_verify_helper()
1493 rc = __cil_verify_nodecon(db, node); in __cil_verify_helper()
1496 rc = __cil_verify_ibpkeycon(db, node); in __cil_verify_helper()
1499 rc = __cil_verify_ibendportcon(db, node); in __cil_verify_helper()
1502 rc = __cil_verify_portcon(db, node); in __cil_verify_helper()
1505 rc = __cil_verify_pirqcon(db, node); in __cil_verify_helper()
1508 rc = __cil_verify_iomemcon(db, node); in __cil_verify_helper()
1511 rc = __cil_verify_ioportcon(db, node); in __cil_verify_helper()
1514 rc = __cil_verify_pcidevicecon(db, node); in __cil_verify_helper()
1517 rc = __cil_verify_devicetreecon(db, node); in __cil_verify_helper()
1520 rc = __cil_verify_fsuse(db, node); in __cil_verify_helper()
1523 rc = __cil_verify_avrulex(node); in __cil_verify_helper()
1526 rc = __cil_verify_permissionx(node->data, node); in __cil_verify_helper()
1529 rc = SEPOL_OK; in __cil_verify_helper()
1532 rc = SEPOL_OK; in __cil_verify_helper()
1538 rc = SEPOL_ERR; in __cil_verify_helper()
1542 return rc; in __cil_verify_helper()
1547 int rc = SEPOL_ERR; in __cil_verify_classperms() local
1560 rc = SEPOL_ERR; in __cil_verify_classperms()
1563 rc = __cil_verify_classperms(cmp->classperms, orig); in __cil_verify_classperms()
1564 if (rc != SEPOL_OK) { in __cil_verify_classperms()
1573 rc = SEPOL_ERR; in __cil_verify_classperms()
1576 rc = __cil_verify_classperms(cp->classperms, orig); in __cil_verify_classperms()
1577 if (rc != SEPOL_OK) { in __cil_verify_classperms()
1586 return rc; in __cil_verify_classperms()
1591 int rc = SEPOL_ERR; in __cil_verify_classpermission() local
1596 rc = SEPOL_ERR; in __cil_verify_classpermission()
1600 rc = __cil_verify_classperms(cp->classperms, &cp->datum); in __cil_verify_classpermission()
1601 if (rc != SEPOL_OK) { in __cil_verify_classpermission()
1606 rc = SEPOL_OK; in __cil_verify_classpermission()
1609 return rc; in __cil_verify_classpermission()
1615 int rc; member
1620 int rc = SEPOL_ERR; in __verify_map_perm_classperms() local
1626 map_args->rc = SEPOL_ERR; in __verify_map_perm_classperms()
1630 rc = __cil_verify_classperms(cmp->classperms, &cmp->datum); in __verify_map_perm_classperms()
1631 if (rc != SEPOL_OK) { in __verify_map_perm_classperms()
1633 map_args->rc = SEPOL_ERR; in __verify_map_perm_classperms()
1648 map_args.rc = SEPOL_OK; in __cil_verify_map_class()
1652 if (map_args.rc != SEPOL_OK) { in __cil_verify_map_class()
1661 int rc = SEPOL_ERR; in __cil_pre_verify_helper() local
1665 rc = SEPOL_OK; in __cil_pre_verify_helper()
1672 rc = SEPOL_OK; in __cil_pre_verify_helper()
1678 rc = __cil_verify_user_pre_eval(node); in __cil_pre_verify_helper()
1679 if (rc != SEPOL_OK) { in __cil_pre_verify_helper()
1684 rc = __cil_verify_map_class(node); in __cil_pre_verify_helper()
1687 rc = __cil_verify_classpermission(node); in __cil_pre_verify_helper()
1690 rc = SEPOL_OK; in __cil_pre_verify_helper()
1695 return rc; in __cil_pre_verify_helper()