Home | History | Annotate | Download | only in src

Lines Matching refs:rc

53 	int rc = SEPOL_ERR;
60 rc = cil_unfill_expr((struct cil_list *)curr->data, &str, paren);
61 if (rc != SEPOL_OK)
70 rc = SEPOL_ERR;
80 rc = SEPOL_ERR;
137 rc = __cil_unfill_expr_helper(curr->next, next, &operand1, paren);
138 if (rc != SEPOL_OK)
145 rc = __cil_unfill_expr_helper(curr->next, next, &operand1, paren);
146 if (rc != SEPOL_OK)
150 rc = __cil_unfill_expr_helper(*next, next, &operand2, paren);
151 if (rc != SEPOL_OK)
211 rc = SEPOL_ERR;
223 rc = SEPOL_OK;
227 return rc;
231 int rc = SEPOL_ERR;
245 rc = __cil_unfill_expr_helper(curr, &next, &str, paren);
246 if (rc != SEPOL_OK)
252 rc = __cil_strlist_concat(str_list, out_str, paren);
253 if (rc != SEPOL_OK)
255 rc = SEPOL_OK;
261 return rc;
269 int rc = SEPOL_ERR;
275 rc = cil_unfill_cats(lvl->cats, &cats);
276 if (rc != SEPOL_OK)
284 rc = SEPOL_ERR;
290 rc = SEPOL_ERR;
294 rc = SEPOL_OK;
297 return rc;
301 int rc = SEPOL_ERR;
308 rc = SEPOL_ERR;
312 rc = cil_unfill_level(lvlrnge->low, &low);
313 if (rc != SEPOL_OK)
320 rc = SEPOL_ERR;
324 rc = cil_unfill_level(lvlrnge->high, &high);
325 if (rc != SEPOL_OK)
332 rc = SEPOL_ERR;
335 rc = SEPOL_OK;
339 return rc;
343 int rc = SEPOL_ERR;
355 rc = SEPOL_ERR;
359 rc = cil_unfill_levelrange(context->range, &range_str);
360 if (rc != SEPOL_OK)
368 rc = SEPOL_ERR;
371 rc = SEPOL_OK;
374 return rc;
379 int rc = SEPOL_ERR;
389 rc = SEPOL_ERR;
394 rc = cil_unfill_expr(permx->expr_str, &expr, 1);
395 if (rc != SEPOL_OK)
401 rc = SEPOL_ERR;
404 rc = SEPOL_OK;
407 return rc;
435 int rc = SEPOL_ERR;
449 rc = cil_tree_walk(node, __cil_write_node_helper,
453 if (rc != SEPOL_OK)
460 rc = SEPOL_OK;
462 return rc;
466 int rc = SEPOL_ERR;
471 rc = cil_unfill_expr(classord->class_list_str, &ord_str, 1);
472 if (rc != SEPOL_OK)
475 rc = SEPOL_OK;
478 return rc;
495 int rc = SEPOL_ERR;
505 rc = SEPOL_ERR;
509 rc = cil_unfill_context(sidcon->context, &ctx_str);
510 if (rc != SEPOL_OK)
514 rc = SEPOL_OK;
517 return rc;
521 int rc = SEPOL_ERR;
526 rc = cil_unfill_expr(sidord->sid_list_str, &ord_str, 1);
527 if (rc != SEPOL_OK)
530 rc = SEPOL_OK;
533 return rc;
551 int rc = SEPOL_ERR;
560 rc = SEPOL_ERR;
564 rc = cil_unfill_level(usrlvl->level, &lvl);
565 if (rc != SEPOL_OK)
569 rc = SEPOL_OK;
572 return rc;
577 int rc = SEPOL_ERR;
586 rc = SEPOL_ERR;
590 rc = cil_unfill_levelrange(usrrng->range, &range);
591 if (rc != SEPOL_OK)
595 rc = SEPOL_OK;
598 return rc;
638 int rc = SEPOL_ERR;
644 rc = cil_unfill_expr(typeattrset->str_expr, &set_str, 1);
645 if (rc != SEPOL_OK)
649 rc = SEPOL_OK;
652 return rc;
657 int rc = SEPOL_ERR;
661 rc = cil_unfill_expr(expandattr->attr_strs, &attr_strs, 1);
662 if (rc != SEPOL_OK)
667 rc = SEPOL_OK;
670 return rc;
674 int rc = SEPOL_ERR;
690 rc = SEPOL_ERR;
695 rc = SEPOL_OK;
697 return rc;
701 int rc = SEPOL_ERR;
717 rc = SEPOL_ERR;
724 rc = SEPOL_OK;
726 return rc;
744 int rc = SEPOL_ERR;
763 rc = SEPOL_ERR;
774 rc = SEPOL_ERR;
778 rc = cil_unfill_permx(avrule->perms.x.permx, &xperms);
779 if (rc != SEPOL_OK)
783 rc = SEPOL_OK;
786 return rc;
790 int rc = SEPOL_ERR;
809 rc = SEPOL_ERR;
816 rc = cil_unfill_classperms_list(avrule->perms.classperms, &classperms, 0);
817 if (rc != SEPOL_OK)
820 rc = SEPOL_OK;
823 return rc;
827 int rc = SEPOL_ERR;
831 rc = cil_write_avrule_x(avrule, cil_out);
833 rc = cil_write_avrule_orig(avrule, cil_out);
834 return rc;
838 int rc = SEPOL_ERR;
854 rc = SEPOL_ERR;
863 rc = SEPOL_OK;
865 return rc;
881 int rc = SEPOL_ERR;
887 rc = cil_unfill_cats(senscat->cats, &cats);
888 if (rc != SEPOL_OK)
892 rc = SEPOL_OK;
895 return rc;
899 int rc = SEPOL_ERR;
904 rc = cil_unfill_expr(catord->cat_list_str, &ord_str, 1);
905 if (rc != SEPOL_OK)
908 rc = SEPOL_OK;
911 return rc;
915 int rc = SEPOL_ERR;
920 rc = cil_unfill_expr(sensord->sens_list_str, &ord_str, 1);
921 if (rc != SEPOL_OK)
924 rc = SEPOL_OK;
927 return rc;
931 int rc = SEPOL_ERR;
939 rc = SEPOL_ERR;
943 rc = cil_unfill_context(genfscon->context, &ctx_str);
944 if (rc != SEPOL_OK)
949 rc = SEPOL_OK;
952 return rc;
956 int rc = SEPOL_ERR;
966 rc = cil_unfill_expr(cp->perm_strs, &perms_str, 1);
967 if (rc != SEPOL_OK)
972 rc = SEPOL_OK;
975 return rc;
979 int rc = SEPOL_ERR;
992 rc = SEPOL_ERR;
997 rc = cil_unfill_classperms(curr, &str);
998 if (rc != SEPOL_OK)
1008 rc = __cil_strlist_concat(str_list, out_str, paren);
1009 if (rc != SEPOL_OK)
1011 rc = SEPOL_OK;
1017 return rc;
1021 int rc = SEPOL_ERR;
1038 rc = SEPOL_ERR;
1048 rc = SEPOL_ERR;
1052 rc = cil_unfill_context(fsuse->context, &ctx_str);
1053 if (rc != SEPOL_OK)
1059 return rc;
1063 int rc = SEPOL_ERR;
1071 rc = cil_unfill_classperms_list(cons->classperms, &classperms, 0);
1072 if (rc != SEPOL_OK)
1075 rc = cil_unfill_expr(cons->str_expr, &expr, 0);
1076 if (rc != SEPOL_OK)
1083 return rc;
1087 int rc = SEPOL_OK;
1103 rc = SEPOL_ERR;
1109 return rc;
1113 int rc = SEPOL_OK;
1125 rc = SEPOL_ERR;
1131 return rc;
1136 int rc = SEPOL_ERR;
1148 rc = SEPOL_OK;
1150 return rc;
1155 int rc = SEPOL_OK;
1170 rc = cil_write_unsupported("CIL_BLOCK");
1173 rc = cil_write_unsupported("CIL_BLOCKABSTRACT");
1176 rc = cil_write_unsupported("CIL_BLOCKINHERIT");
1179 rc = cil_write_unsupported("CIL_IN");
1185 rc = cil_write_perm(node, cil_out);
1188 rc = cil_write_unsupported("CIL_MAP_PERM");
1191 rc = cil_write_unsupported("CIL_CLASSMAPPING");
1194 rc = cil_write_class(node, finished, extra_args);
1197 rc = cil_write_class(node, finished, extra_args);
1200 rc = cil_write_unsupported("CIL_MAP_CLASS");
1203 rc = cil_write_classorder(node, cil_out);
1206 rc = cil_write_unsupported("CIL_CLASSPERMISSION");
1209 rc = cil_write_unsupported("CIL_CLASSPERMISSIONSET");
1212 rc = cil_write_classcommon(node, cil_out);
1215 rc = cil_write_sid(node, cil_out);
1218 rc = cil_write_sidcontext(node, cil_out);
1221 rc = cil_write_sidorder(node, cil_out);
1224 rc = cil_write_user(node, cil_out);
1227 rc = cil_write_unsupported("CIL_USERATTRIBUTE");
1230 rc = cil_write_unsupported("CIL_USERATTRIBUTESET");
1233 rc = cil_write_userrole(node, cil_out);
1236 rc = cil_write_userlevel(node, cil_out);
1239 rc = cil_write_userrange(node, cil_out);
1242 rc = cil_write_unsupported("CIL_USERBOUNDS");
1245 rc = cil_write_unsupported("CIL_USERPREFIX");
1248 rc = cil_write_role(node, cil_out);
1251 rc = cil_write_roletype(node, cil_out);
1254 rc = cil_write_unsupported("CIL_ROLEBOUNDS");
1260 rc = cil_write_unsupported("CIL_ROLEATTRIBUTESET");
1263 rc = cil_write_unsupported("CIL_ROLEALLOW");
1266 rc = cil_write_type(node, cil_out);
1269 rc = cil_write_unsupported("CIL_TYPEBOUNDS");
1272 rc = cil_write_typepermissive(node, cil_out);
1275 rc = cil_write_typeattribute(node, cil_out);
1278 rc = cil_write_typeattributeset(node, cil_out);
1281 rc = cil_write_expandtypeattribute(node, cil_out);
1284 rc = cil_write_alias(node, cil_out);
1287 rc = cil_write_aliasactual(node, cil_out);
1290 rc = cil_write_unsupported("CIL_ROLETRANSITION");
1293 rc = cil_write_nametypetransition(node, cil_out);
1296 rc = cil_write_unsupported("CIL_RANGETRANSITION");
1299 rc = cil_write_unsupported("CIL_TUNABLE");
1302 rc = cil_write_unsupported("CIL_BOOL");
1306 rc = cil_write_avrule(node, cil_out);
1309 rc = cil_write_unsupported("CIL_PERMISSIONX");
1315 rc = cil_write_sens(node, cil_out);
1318 rc = cil_write_alias(node, cil_out);
1321 rc = cil_write_aliasactual(node, cil_out);
1324 rc = cil_write_cat(node, cil_out);
1327 rc = cil_write_alias(node, cil_out);
1330 rc = cil_write_aliasactual(node, cil_out);
1333 rc = cil_write_unsupported("CIL_CATSET");
1336 rc = cil_write_senscat(node, cil_out);
1339 rc = cil_write_catorder(node, cil_out);
1342 rc = cil_write_sensorder(node, cil_out);
1345 rc = cil_write_unsupported("CIL_LEVEL");
1348 rc = cil_write_unsupported("CIL_LEVELRANGE");
1351 rc = cil_write_unsupported("CIL_CONTEXT");
1354 rc = cil_write_unsupported("CIL_NETIFCON");
1357 rc = cil_write_genfscon(node, cil_out);
1360 rc = cil_write_unsupported("CIL_FILECON");
1363 rc = cil_write_unsupported("CIL_NODECON");
1366 rc = cil_write_unsupported("CIL_PORTCON");
1369 rc = cil_write_unsupported("CIL_PIRQCON");
1372 rc = cil_write_unsupported("CIL_IOMEMCON");
1375 rc = cil_write_unsupported("CIL_IOPORTCON");
1378 rc = cil_write_unsupported("CIL_PCIDEVICECON");
1381 rc = cil_write_unsupported("CIL_DEVICETREECON");
1384 rc = cil_write_fsuse(node, cil_out);
1387 rc = cil_write_unsupported("CIL_CONSTRAIN");
1390 rc = cil_write_constrain(node, cil_out);
1393 rc = cil_write_unsupported("CIL_VALIDATETRANS");
1396 rc = cil_write_unsupported("CIL_MLSVALIDATETRANS");
1399 rc = cil_write_unsupported("CIL_CALL");
1402 rc = cil_write_unsupported("CIL_MACRO");
1405 rc = cil_write_unsupported("CIL_NODE");
1408 rc = cil_write_unsupported("CIL_OPTIONAL");
1411 rc = cil_write_unsupported("CIL_IPADDR");
1414 rc = cil_write_unsupported("CIL_CONDBLOCK");
1417 rc = cil_write_unsupported("CIL_BOOLEANIF");
1420 rc = cil_write_unsupported("CIL_TUNABLEIF");
1423 rc = cil_write_unsupported("CIL_DEFAULTUSER");
1426 rc = cil_write_unsupported("CIL_DEFAULTROLE");
1429 rc = cil_write_unsupported("CIL_DEFAULTTYPE");
1432 rc = cil_write_unsupported("CIL_DEFAULTRANGE");
1435 rc = cil_write_unsupported("CIL_SELINUXUSER");
1438 rc = cil_write_unsupported("CIL_SELINUXUSERDEFAULT");
1441 rc = cil_write_handleunknown(node, cil_out);
1444 rc = cil_write_mls(node, cil_out);
1454 rc = SEPOL_ERR;
1459 return rc;
1464 int rc = SEPOL_ERR;
1480 rc = SEPOL_OK;
1482 return rc;
1487 int rc = SEPOL_ERR;
1494 rc = SEPOL_ERR;
1500 rc = cil_tree_walk(db->ast->root, __cil_write_node_helper,
1504 if (rc != SEPOL_OK) {
1505 cil_log(CIL_INFO, "cil_tree_walk failed, rc: %d\n", rc);
1512 return rc;