Lines Matching refs:ret
398 int ret, ch, fd, target = SEPOL_TARGET_SELINUX;
566 ret = policydb_read(&policydb, &pf, 1);
567 if (ret) {
648 ret = policydb_optimize(policydbp);
649 if (ret) {
675 ret = policydb_sort_ocontexts(&policydb);
676 if (ret) {
682 ret = policydb_write(&policydb, &pf);
684 ret = sepol_kernel_policydb_to_conf(outfp, policydbp);
686 if (ret) {
693 ret = sepol_kernel_policydb_to_cil(outfp, policydbp);
695 ret = sepol_module_policydb_to_cil(outfp, policydbp, 1);
697 if (ret) {
792 ret = sepol_compute_av(ssid, tsid, tclass, 0, &avd);
793 switch (ret) {
799 ret =
804 if (!ret && cladatum->comdatum) {
805 ret =
812 if (ret)
822 printf("return code 0x%x\n", ret);
829 ret = sepol_sid_to_context(ssid,
831 switch (ret) {
843 printf("return code 0x%x\n", ret);
851 ret = sepol_context_to_sid(ans, scontext_len, &ssid);
852 switch (ret) {
863 printf("return code 0x%x\n", ret);
902 ret =
906 ret =
909 ret =
911 switch (ret) {
922 printf("return code 0x%x\n", ret);
952 ret = sepol_load_policy(map, sb.st_size);
953 switch (ret) {
964 printf("return code 0x%x\n", ret);
971 ret = sepol_fs_sid(ans, &ssid, &tsid);
972 if (ret) {
1004 ret = sepol_netif_sid(ans, &ssid, &tsid);
1005 if (ret) {
1120 ret = sepol_get_user_sids(ssid, ans, &sids, &nel);
1121 switch (ret) {