Lines Matching refs:rc
686 int rc = -1;
691 rc = getfilecon(pkgdir, &ctx_str);
692 if (rc < 0)
700 rc = seapp_context_lookup(SEAPP_TYPE, uid, 0, seinfo, pkgname, NULL, ctx);
701 if (rc == -1)
703 else if (rc == -2)
710 rc = security_check_context(ctx_str);
711 if (rc < 0)
715 rc = setfilecon(pkgdir, ctx_str);
716 if (rc < 0)
720 rc = 0;
724 return rc;
728 rc = -1;
732 rc = -1;
743 int rc = -1;
748 rc = getcon(&ctx_str);
749 if (rc)
757 rc = seapp_context_lookup(SEAPP_DOMAIN, uid, isSystemServer, seinfo, pkgname, NULL, ctx);
758 if (rc == -1)
760 else if (rc == -2)
767 rc = security_check_context(ctx_str);
768 if (rc < 0)
772 rc = setcon(ctx_str);
773 if (rc < 0)
777 rc = 0;
782 return rc;
793 rc = -1;
797 rc = -1;
1046 int rc = 0;
1090 rc = seapp_context_lookup(SEAPP_TYPE, pkgInfo ? pkgInfo->uid : uid, 0,
1092 if (rc < 0)
1102 rc = security_check_context(secontext);
1103 if (rc < 0)
1111 rc = 0;
1116 return rc;
1120 rc = -1;
1132 int rc = 0;
1162 rc = 0;
1167 return rc;
1173 rc = -1;
1330 int fd = -1, rc;
1363 rc = security_load_policy(map, sb.st_size);
1364 if (rc < 0) {
1387 int rc;
1388 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1389 if (rc < 0) {
1397 rc = mkdir(mnt, 0755);
1398 if (rc == -1 && errno != EEXIST) {
1403 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1406 if (rc < 0) {