Lines Matching refs:rc
59 int rc; in cats_compare() local
68 rc = strcmp(DATUM(i->data)->fqn, DATUM(j->data)->fqn); in cats_compare()
69 if (!rc) return rc; in cats_compare()
77 int rc; in level_compare() local
84 rc = strcmp(DATUM(a->sens)->fqn, DATUM(b->sens)->fqn); in level_compare()
85 if (rc != 0) return rc; in level_compare()
95 int rc; in range_compare() local
102 rc = level_compare(a->low, b->low); in range_compare()
103 if (rc != 0) return rc; in range_compare()
113 int rc; in context_compare() local
116 rc = strcmp(DATUM(a->user)->fqn, DATUM(b->user)->fqn); in context_compare()
117 if (rc != 0) return rc; in context_compare()
120 rc = strcmp(DATUM(a->role)->fqn, DATUM(b->role)->fqn); in context_compare()
121 if (rc != 0) return rc; in context_compare()
124 rc = strcmp(DATUM(a->type)->fqn, DATUM(b->type)->fqn); in context_compare()
125 if (rc != 0) return rc; in context_compare()
196 int rc = 0; in cil_post_filecon_compare() local
210 rc = -1; in cil_post_filecon_compare()
212 rc = 1; in cil_post_filecon_compare()
214 rc = -1; in cil_post_filecon_compare()
216 rc = 1; in cil_post_filecon_compare()
218 rc = -1; in cil_post_filecon_compare()
220 rc = 1; in cil_post_filecon_compare()
222 rc = -1; in cil_post_filecon_compare()
224 rc = 1; in cil_post_filecon_compare()
226 rc = strcmp(a_filecon->path_str, b_filecon->path_str); in cil_post_filecon_compare()
234 return rc; in cil_post_filecon_compare()
239 int rc = SEPOL_ERR; in cil_post_ibpkeycon_compare() local
243 rc = strcmp(aibpkeycon->subnet_prefix_str, bibpkeycon->subnet_prefix_str); in cil_post_ibpkeycon_compare()
244 if (rc) in cil_post_ibpkeycon_compare()
245 return rc; in cil_post_ibpkeycon_compare()
247 rc = (aibpkeycon->pkey_high - aibpkeycon->pkey_low) in cil_post_ibpkeycon_compare()
249 if (rc == 0) { in cil_post_ibpkeycon_compare()
251 rc = -1; in cil_post_ibpkeycon_compare()
253 rc = 1; in cil_post_ibpkeycon_compare()
256 return rc; in cil_post_ibpkeycon_compare()
261 int rc = SEPOL_ERR; in cil_post_portcon_compare() local
265 rc = (aportcon->port_high - aportcon->port_low) in cil_post_portcon_compare()
267 if (rc == 0) { in cil_post_portcon_compare()
269 rc = -1; in cil_post_portcon_compare()
271 rc = 1; in cil_post_portcon_compare()
273 rc = -1; in cil_post_portcon_compare()
275 rc = 1; in cil_post_portcon_compare()
279 return rc; in cil_post_portcon_compare()
284 int rc = SEPOL_ERR; in cil_post_genfscon_compare() local
288 rc = strcmp(agenfscon->fs_str, bgenfscon->fs_str); in cil_post_genfscon_compare()
289 if (rc == 0) { in cil_post_genfscon_compare()
290 rc = strcmp(agenfscon->path_str, bgenfscon->path_str); in cil_post_genfscon_compare()
293 return rc; in cil_post_genfscon_compare()
306 int rc = SEPOL_ERR; in cil_post_ibendportcon_compare() local
311 rc = strcmp(aibendportcon->dev_name_str, bibendportcon->dev_name_str); in cil_post_ibendportcon_compare()
312 if (rc) in cil_post_ibendportcon_compare()
313 return rc; in cil_post_ibendportcon_compare()
320 return rc; in cil_post_ibendportcon_compare()
341 int rc = memcmp(&anodecon->mask->ip.v4, &bnodecon->mask->ip.v4, sizeof(anodecon->mask->ip.v4)); in cil_post_nodecon_compare() local
342 if (rc != 0) { in cil_post_nodecon_compare()
343 return -1 * rc; in cil_post_nodecon_compare()
347 int rc = memcmp(&anodecon->mask->ip.v6, &bnodecon->mask->ip.v6, sizeof(anodecon->mask->ip.v6)); in cil_post_nodecon_compare() local
348 if (rc != 0) { in cil_post_nodecon_compare()
349 return -1 * rc; in cil_post_nodecon_compare()
357 int rc = SEPOL_ERR; in cil_post_pirqcon_compare() local
362 rc = -1; in cil_post_pirqcon_compare()
364 rc = 1; in cil_post_pirqcon_compare()
366 rc = 0; in cil_post_pirqcon_compare()
369 return rc; in cil_post_pirqcon_compare()
374 int rc = SEPOL_ERR; in cil_post_iomemcon_compare() local
378 rc = (aiomemcon->iomem_high - aiomemcon->iomem_low) in cil_post_iomemcon_compare()
380 if (rc == 0) { in cil_post_iomemcon_compare()
382 rc = -1; in cil_post_iomemcon_compare()
384 rc = 1; in cil_post_iomemcon_compare()
388 return rc; in cil_post_iomemcon_compare()
393 int rc = SEPOL_ERR; in cil_post_ioportcon_compare() local
397 rc = (aioportcon->ioport_high - aioportcon->ioport_low) in cil_post_ioportcon_compare()
399 if (rc == 0) { in cil_post_ioportcon_compare()
401 rc = -1; in cil_post_ioportcon_compare()
403 rc = 1; in cil_post_ioportcon_compare()
407 return rc; in cil_post_ioportcon_compare()
412 int rc = SEPOL_ERR; in cil_post_pcidevicecon_compare() local
417 rc = -1; in cil_post_pcidevicecon_compare()
419 rc = 1; in cil_post_pcidevicecon_compare()
421 rc = 0; in cil_post_pcidevicecon_compare()
424 return rc; in cil_post_pcidevicecon_compare()
429 int rc = SEPOL_ERR; in cil_post_devicetreecon_compare() local
433 rc = strcmp(adevicetreecon->path, bdevicetreecon->path); in cil_post_devicetreecon_compare()
435 return rc; in cil_post_devicetreecon_compare()
440 int rc; in cil_post_fsuse_compare() local
446 rc = -1; in cil_post_fsuse_compare()
448 rc = 1; in cil_post_fsuse_compare()
450 rc = strcmp(afsuse->fs_str, bfsuse->fs_str); in cil_post_fsuse_compare()
452 return rc; in cil_post_fsuse_compare()
485 int rc; in cil_post_netifcon_context_compare() local
488 rc = context_compare(a_netifcon->if_context, b_netifcon->if_context); in cil_post_netifcon_context_compare()
489 if (rc != 0) { in cil_post_netifcon_context_compare()
490 return rc; in cil_post_netifcon_context_compare()
862 int rc; in __evaluate_type_expression() local
865 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->types, db->num_types, db); in __evaluate_type_expression()
866 if (rc != SEPOL_OK) { in __evaluate_type_expression()
872 return rc; in __evaluate_type_expression()
877 int rc = SEPOL_ERR; in __cil_type_to_bitmap() local
885 rc = __evaluate_type_expression(attr, db); in __cil_type_to_bitmap()
886 if (rc != SEPOL_OK) goto exit; in __cil_type_to_bitmap()
909 return rc; in __cil_type_to_bitmap()
914 int rc; in __evaluate_user_expression() local
917 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->users, db->num_users, db); in __evaluate_user_expression()
918 if (rc != SEPOL_OK) { in __evaluate_user_expression()
924 return rc; in __evaluate_user_expression()
929 int rc = SEPOL_ERR; in __cil_user_to_bitmap() local
939 rc = __evaluate_user_expression(attr, db); in __cil_user_to_bitmap()
940 if (rc != SEPOL_OK) { in __cil_user_to_bitmap()
957 return rc; in __cil_user_to_bitmap()
962 int rc; in __evaluate_role_expression() local
965 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->roles, db->num_roles, db); in __evaluate_role_expression()
966 if (rc != SEPOL_OK) { in __evaluate_role_expression()
972 return rc; in __evaluate_role_expression()
977 int rc = SEPOL_ERR; in __cil_role_to_bitmap() local
985 rc = __evaluate_role_expression(attr, db); in __cil_role_to_bitmap()
986 if (rc != SEPOL_OK) goto exit; in __cil_role_to_bitmap()
1001 return rc; in __cil_role_to_bitmap()
1006 int rc; in __evaluate_permissionx_expression() local
1011 …rc = __cil_expr_to_bitmap(permx->expr_str, permx->perms, 0x10000, db); // max is one more than 0xF… in __evaluate_permissionx_expression()
1012 if (rc != SEPOL_OK) { in __evaluate_permissionx_expression()
1019 return rc; in __evaluate_permissionx_expression()
1046 int rc = SEPOL_ERR; in __cil_permx_to_bitmap() local
1049 rc = __cil_permx_str_to_int((char*)datum, &val); in __cil_permx_to_bitmap()
1050 if (rc != SEPOL_OK) { in __cil_permx_to_bitmap()
1064 return rc; in __cil_permx_to_bitmap()
1084 int rc = SEPOL_ERR; in __evaluate_cat_expression() local
1098 rc = __cil_expr_to_bitmap(cats->datum_expr, &bitmap, db->num_cats, db); in __evaluate_cat_expression()
1099 if (rc != SEPOL_OK) { in __evaluate_cat_expression()
1123 return rc; in __evaluate_cat_expression()
1128 int rc = SEPOL_ERR; in __cil_cat_to_bitmap() local
1137 rc = __evaluate_cat_expression(catset->cats, db); in __cil_cat_to_bitmap()
1138 if (rc != SEPOL_OK) goto exit; in __cil_cat_to_bitmap()
1168 return rc; in __cil_cat_to_bitmap()
1173 int rc = SEPOL_ERR; in __cil_cat_expr_range_to_bitmap_helper() local
1213 return rc; in __cil_cat_expr_range_to_bitmap_helper()
1218 int rc = SEPOL_ERR; in __cil_permissionx_expr_range_to_bitmap_helper() local
1225 rc = __cil_permx_str_to_int(p1, &v1); in __cil_permissionx_expr_range_to_bitmap_helper()
1226 if (rc != SEPOL_OK) { in __cil_permissionx_expr_range_to_bitmap_helper()
1230 rc = __cil_permx_str_to_int(p2, &v2); in __cil_permissionx_expr_range_to_bitmap_helper()
1231 if (rc != SEPOL_OK) { in __cil_permissionx_expr_range_to_bitmap_helper()
1246 return rc; in __cil_permissionx_expr_range_to_bitmap_helper()
1251 int rc = SEPOL_ERR; in __cil_expr_to_bitmap_helper() local
1256 rc = __cil_type_to_bitmap(curr->data, bitmap, db); in __cil_expr_to_bitmap_helper()
1259 rc = __cil_role_to_bitmap(curr->data, bitmap, db); in __cil_expr_to_bitmap_helper()
1262 rc = __cil_user_to_bitmap(curr->data, bitmap, db); in __cil_expr_to_bitmap_helper()
1265 rc = __cil_perm_to_bitmap(curr->data, bitmap, db); in __cil_expr_to_bitmap_helper()
1268 rc = __cil_cat_to_bitmap(curr->data, bitmap, db); in __cil_expr_to_bitmap_helper()
1271 rc = SEPOL_ERR; in __cil_expr_to_bitmap_helper()
1276 rc = __cil_expr_to_bitmap(l, bitmap, max, db); in __cil_expr_to_bitmap_helper()
1277 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap_helper()
1283 rc = __cil_permx_to_bitmap(curr->data, bitmap, db); in __cil_expr_to_bitmap_helper()
1286 return rc; in __cil_expr_to_bitmap_helper()
1291 int rc = SEPOL_ERR; in __cil_expr_to_bitmap() local
1308 rc = ebitmap_not(&tmp, &b1, max); in __cil_expr_to_bitmap()
1310 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1318 rc = __cil_cat_expr_range_to_bitmap_helper(curr->next, curr->next->next, &tmp); in __cil_expr_to_bitmap()
1319 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1326 rc = __cil_permissionx_expr_range_to_bitmap_helper(curr->next, curr->next->next, &tmp); in __cil_expr_to_bitmap()
1327 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1334 rc = SEPOL_ERR; in __cil_expr_to_bitmap()
1338 rc = __cil_expr_to_bitmap_helper(curr->next, flavor, &b1, max, db); in __cil_expr_to_bitmap()
1339 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1345 rc = ebitmap_not(&tmp, &b1, max); in __cil_expr_to_bitmap()
1347 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1353 rc = __cil_expr_to_bitmap_helper(curr->next->next, flavor, &b2, max, db); in __cil_expr_to_bitmap()
1354 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1361 rc = ebitmap_or(&tmp, &b1, &b2); in __cil_expr_to_bitmap()
1363 rc = ebitmap_and(&tmp, &b1, &b2); in __cil_expr_to_bitmap()
1365 rc = ebitmap_xor(&tmp, &b1, &b2); in __cil_expr_to_bitmap()
1367 rc = SEPOL_ERR; in __cil_expr_to_bitmap()
1371 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1381 rc = __cil_expr_to_bitmap_helper(curr, flavor, &b2, max, db); in __cil_expr_to_bitmap()
1382 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1388 rc = ebitmap_or(&tmp, &b1, &b2); in __cil_expr_to_bitmap()
1391 if (rc != SEPOL_OK) { in __cil_expr_to_bitmap()
1406 return rc; in __cil_expr_to_bitmap()
1411 int rc = SEPOL_ERR; in __cil_expr_list_to_bitmap() local
1424 rc = __cil_expr_to_bitmap(l, &bitmap, max, db); in __cil_expr_list_to_bitmap()
1425 if (rc != SEPOL_OK) { in __cil_expr_list_to_bitmap()
1530 int rc = SEPOL_ERR; in __cil_post_db_attr_helper() local
1548 rc = __evaluate_type_expression(attr, db); in __cil_post_db_attr_helper()
1549 if (rc != SEPOL_OK) goto exit; in __cil_post_db_attr_helper()
1557 rc = __evaluate_role_expression(attr, db); in __cil_post_db_attr_helper()
1558 if (rc != SEPOL_OK) goto exit; in __cil_post_db_attr_helper()
1565 rc = __evaluate_permissionx_expression(rule->perms.x.permx, db); in __cil_post_db_attr_helper()
1566 if (rc != SEPOL_OK) goto exit; in __cil_post_db_attr_helper()
1572 rc = __evaluate_permissionx_expression(permx, db); in __cil_post_db_attr_helper()
1573 if (rc != SEPOL_OK) goto exit; in __cil_post_db_attr_helper()
1579 rc = __evaluate_user_expression(attr, db); in __cil_post_db_attr_helper()
1580 if (rc != SEPOL_OK) { in __cil_post_db_attr_helper()
1593 return rc; in __cil_post_db_attr_helper()
1631 int rc = SEPOL_ERR; in __cil_post_db_roletype_helper() local
1666 rc = __cil_role_assign_types(role, type_datum); in __cil_post_db_roletype_helper()
1667 if (rc != SEPOL_OK) { in __cil_post_db_roletype_helper()
1674 rc = __cil_role_assign_types(role, type_datum); in __cil_post_db_roletype_helper()
1675 if (rc != SEPOL_OK) { in __cil_post_db_roletype_helper()
1688 return rc; in __cil_post_db_roletype_helper()
1721 int rc = SEPOL_ERR; in __cil_post_db_userrole_helper() local
1761 rc = __cil_user_assign_roles(user, role_datum); in __cil_post_db_userrole_helper()
1762 if (rc != SEPOL_OK) { in __cil_post_db_userrole_helper()
1769 rc = __cil_user_assign_roles(user, role_datum); in __cil_post_db_userrole_helper()
1770 if (rc != SEPOL_OK) { in __cil_post_db_userrole_helper()
1784 return rc; in __cil_post_db_userrole_helper()
1798 int rc = SEPOL_OK; in __evaluate_levelrange_expression() local
1801 rc = __evaluate_cat_expression(levelrange->low->cats, db); in __evaluate_levelrange_expression()
1802 if (rc != SEPOL_OK) { in __evaluate_levelrange_expression()
1807 rc = __evaluate_cat_expression(levelrange->high->cats, db); in __evaluate_levelrange_expression()
1808 if (rc != SEPOL_OK) { in __evaluate_levelrange_expression()
1814 return rc; in __evaluate_levelrange_expression()
1819 int rc = SEPOL_ERR; in __cil_post_db_cat_helper() local
1836 rc = __evaluate_cat_expression(catset->cats, db); in __cil_post_db_cat_helper()
1837 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1844 rc = __evaluate_cat_expression(senscat->cats, db); in __cil_post_db_cat_helper()
1845 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1851 rc = __evaluate_level_expression(node->data, db); in __cil_post_db_cat_helper()
1852 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1858 rc = __evaluate_levelrange_expression(node->data, db); in __cil_post_db_cat_helper()
1859 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1866 rc = __evaluate_level_expression(user->dftlevel, db); in __cil_post_db_cat_helper()
1867 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1870 rc = __evaluate_levelrange_expression(user->range, db); in __cil_post_db_cat_helper()
1871 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1879 rc = __evaluate_levelrange_expression(selinuxuser->range, db); in __cil_post_db_cat_helper()
1880 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1887 rc = __evaluate_levelrange_expression(rangetrans->range, db); in __cil_post_db_cat_helper()
1888 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1895 rc = __evaluate_levelrange_expression(context->range, db); in __cil_post_db_cat_helper()
1896 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1903 rc = __evaluate_levelrange_expression(sidcontext->context->range, db); in __cil_post_db_cat_helper()
1904 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1912 rc = __evaluate_levelrange_expression(filecon->context->range, db); in __cil_post_db_cat_helper()
1913 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1922 rc = __evaluate_levelrange_expression(ibpkeycon->context->range, db); in __cil_post_db_cat_helper()
1923 if (rc != SEPOL_OK) in __cil_post_db_cat_helper()
1930 rc = __evaluate_levelrange_expression(ibendportcon->context->range, db); in __cil_post_db_cat_helper()
1931 if (rc != SEPOL_OK) in __cil_post_db_cat_helper()
1937 rc = __evaluate_levelrange_expression(portcon->context->range, db); in __cil_post_db_cat_helper()
1938 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1945 rc = __evaluate_levelrange_expression(nodecon->context->range, db); in __cil_post_db_cat_helper()
1946 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1953 rc = __evaluate_levelrange_expression(genfscon->context->range, db); in __cil_post_db_cat_helper()
1954 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1961 rc = __evaluate_levelrange_expression(netifcon->if_context->range, db); in __cil_post_db_cat_helper()
1962 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1965 rc = __evaluate_levelrange_expression(netifcon->packet_context->range, db); in __cil_post_db_cat_helper()
1966 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1973 rc = __evaluate_levelrange_expression(pirqcon->context->range, db); in __cil_post_db_cat_helper()
1974 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1981 rc = __evaluate_levelrange_expression(iomemcon->context->range, db); in __cil_post_db_cat_helper()
1982 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1989 rc = __evaluate_levelrange_expression(ioportcon->context->range, db); in __cil_post_db_cat_helper()
1990 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
1997 rc = __evaluate_levelrange_expression(pcidevicecon->context->range, db); in __cil_post_db_cat_helper()
1998 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
2005 rc = __evaluate_levelrange_expression(devicetreecon->context->range, db); in __cil_post_db_cat_helper()
2006 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
2013 rc = __evaluate_levelrange_expression(fsuse->context->range, db); in __cil_post_db_cat_helper()
2014 if (rc != SEPOL_OK) { in __cil_post_db_cat_helper()
2026 return rc; in __cil_post_db_cat_helper()
2054 int rc = SEPOL_ERR; in __evaluate_perm_expression() local
2063 rc = __cil_expr_to_bitmap(perms, &bitmap, num_perms, db); in __evaluate_perm_expression()
2064 if (rc != SEPOL_OK) { in __evaluate_perm_expression()
2085 return rc; in __evaluate_perm_expression()
2090 int rc = SEPOL_ERR; in __evaluate_classperms() local
2100 …rc = __evaluate_perm_expression(cp->perms, CIL_PERM, &class->perms, common_symtab, class->num_perm… in __evaluate_classperms()
2101 if (rc != SEPOL_OK) { in __evaluate_classperms()
2116 return rc; in __evaluate_classperms()
2121 int rc = SEPOL_ERR; in __evaluate_classperms_list() local
2128 rc = __evaluate_classperms(cp, db); in __evaluate_classperms_list()
2129 if (rc != SEPOL_OK) { in __evaluate_classperms_list()
2136 rc = __evaluate_classperms_list(cmp->classperms, db); in __evaluate_classperms_list()
2137 if (rc != SEPOL_OK) { in __evaluate_classperms_list()
2145 rc = __evaluate_classperms_list(cp->classperms, db); in __evaluate_classperms_list()
2146 if (rc != SEPOL_OK) { in __evaluate_classperms_list()
2155 return rc; in __evaluate_classperms_list()
2160 int rc; member
2168 int rc = __evaluate_classperms_list(cmp->classperms, map_args->db); in __evaluate_map_perm_classperms() local
2170 if (rc != SEPOL_OK) { in __evaluate_map_perm_classperms()
2171 map_args->rc = rc; in __evaluate_map_perm_classperms()
2182 map_args.rc = SEPOL_OK; in __evaluate_map_class()
2185 return map_args.rc; in __evaluate_map_class()
2190 int rc = SEPOL_ERR; in __cil_post_db_classperms_helper() local
2205 rc = __evaluate_map_class(node->data, db); in __cil_post_db_classperms_helper()
2206 if (rc != SEPOL_OK) { in __cil_post_db_classperms_helper()
2213 rc = __evaluate_classperms_list(cp->classperms, db); in __cil_post_db_classperms_helper()
2214 if (rc != SEPOL_OK) { in __cil_post_db_classperms_helper()
2221 rc = __evaluate_classperms_list(avrule->perms.classperms, db); in __cil_post_db_classperms_helper()
2222 if (rc != SEPOL_OK) { in __cil_post_db_classperms_helper()
2230 rc = __evaluate_classperms_list(constrain->classperms, db); in __cil_post_db_classperms_helper()
2231 if (rc != SEPOL_OK) { in __cil_post_db_classperms_helper()
2243 return rc; in __cil_post_db_classperms_helper()
2270 int rc = SEPOL_OK; in __cil_post_process_context_rules() local
2289 rc = SEPOL_ERR; in __cil_post_process_context_rules()
2311 return rc; in __cil_post_process_context_rules()
2316 int rc = SEPOL_ERR; in cil_post_db() local
2318 rc = cil_tree_walk(db->ast->root, __cil_post_db_count_helper, NULL, NULL, db); in cil_post_db()
2319 if (rc != SEPOL_OK) { in cil_post_db()
2324 rc = cil_tree_walk(db->ast->root, __cil_post_db_array_helper, NULL, NULL, db); in cil_post_db()
2325 if (rc != SEPOL_OK) { in cil_post_db()
2330 rc = cil_tree_walk(db->ast->root, __cil_post_db_neverallow_attr_helper, NULL, NULL, db); in cil_post_db()
2331 if (rc != SEPOL_OK) { in cil_post_db()
2336 rc = cil_tree_walk(db->ast->root, __cil_post_db_attr_helper, NULL, NULL, db); in cil_post_db()
2337 if (rc != SEPOL_OK) { in cil_post_db()
2342 rc = cil_tree_walk(db->ast->root, __cil_post_db_roletype_helper, NULL, NULL, db); in cil_post_db()
2343 if (rc != SEPOL_OK) { in cil_post_db()
2348 rc = cil_tree_walk(db->ast->root, __cil_post_db_userrole_helper, NULL, NULL, db); in cil_post_db()
2349 if (rc != SEPOL_OK) { in cil_post_db()
2354 rc = cil_tree_walk(db->ast->root, __cil_post_db_classperms_helper, NULL, NULL, db); in cil_post_db()
2355 if (rc != SEPOL_OK) { in cil_post_db()
2360 rc = cil_tree_walk(db->ast->root, __cil_post_db_cat_helper, NULL, NULL, db); in cil_post_db()
2361 if (rc != SEPOL_OK) { in cil_post_db()
2366 …rc = __cil_post_process_context_rules(db->netifcon, cil_post_netifcon_compare, cil_post_netifcon_c… in cil_post_db()
2367 if (rc != SEPOL_OK) { in cil_post_db()
2372 …rc = __cil_post_process_context_rules(db->genfscon, cil_post_genfscon_compare, cil_post_genfscon_c… in cil_post_db()
2373 if (rc != SEPOL_OK) { in cil_post_db()
2378 …rc = __cil_post_process_context_rules(db->ibpkeycon, cil_post_ibpkeycon_compare, cil_post_ibpkeyco… in cil_post_db()
2379 if (rc != SEPOL_OK) { in cil_post_db()
2384 …rc = __cil_post_process_context_rules(db->ibendportcon, cil_post_ibendportcon_compare, cil_post_ib… in cil_post_db()
2385 if (rc != SEPOL_OK) { in cil_post_db()
2390 …rc = __cil_post_process_context_rules(db->portcon, cil_post_portcon_compare, cil_post_portcon_cont… in cil_post_db()
2391 if (rc != SEPOL_OK) { in cil_post_db()
2396 …rc = __cil_post_process_context_rules(db->nodecon, cil_post_nodecon_compare, cil_post_nodecon_cont… in cil_post_db()
2397 if (rc != SEPOL_OK) { in cil_post_db()
2402 …rc = __cil_post_process_context_rules(db->fsuse, cil_post_fsuse_compare, cil_post_fsuse_context_co… in cil_post_db()
2403 if (rc != SEPOL_OK) { in cil_post_db()
2408 …rc = __cil_post_process_context_rules(db->filecon, cil_post_filecon_compare, cil_post_filecon_cont… in cil_post_db()
2409 if (rc != SEPOL_OK) { in cil_post_db()
2414 …rc = __cil_post_process_context_rules(db->iomemcon, cil_post_iomemcon_compare, cil_post_iomemcon_c… in cil_post_db()
2415 if (rc != SEPOL_OK) { in cil_post_db()
2420 …rc = __cil_post_process_context_rules(db->ioportcon, cil_post_ioportcon_compare, cil_post_ioportco… in cil_post_db()
2421 if (rc != SEPOL_OK) { in cil_post_db()
2426 …rc = __cil_post_process_context_rules(db->pcidevicecon, cil_post_pcidevicecon_compare, cil_post_pc… in cil_post_db()
2427 if (rc != SEPOL_OK) { in cil_post_db()
2432 …rc = __cil_post_process_context_rules(db->devicetreecon, cil_post_devicetreecon_compare, cil_post_… in cil_post_db()
2433 if (rc != SEPOL_OK) { in cil_post_db()
2439 return rc; in cil_post_db()
2444 int rc = SEPOL_ERR; in cil_post_verify() local
2464 rc = cil_tree_walk(db->ast->root, __cil_verify_helper, NULL, NULL, &extra_args); in cil_post_verify()
2465 if (rc != SEPOL_OK) { in cil_post_verify()
2489 rc = SEPOL_ERR; in cil_post_verify()
2495 rc = SEPOL_ERR; in cil_post_verify()
2501 return rc; in cil_post_verify()
2506 int rc = SEPOL_ERR; in cil_pre_verify() local
2511 rc = cil_tree_walk(db->ast->root, __cil_pre_verify_helper, NULL, NULL, &extra_args); in cil_pre_verify()
2512 if (rc != SEPOL_OK) { in cil_pre_verify()
2518 return rc; in cil_pre_verify()
2523 int rc = SEPOL_ERR; in cil_post_process() local
2525 rc = cil_pre_verify(db); in cil_post_process()
2526 if (rc != SEPOL_OK) { in cil_post_process()
2531 rc = cil_post_db(db); in cil_post_process()
2532 if (rc != SEPOL_OK) { in cil_post_process()
2537 rc = cil_post_verify(db); in cil_post_process()
2538 if (rc != SEPOL_OK) { in cil_post_process()
2544 return rc; in cil_post_process()