Home | History | Annotate | Download | only in src

Lines Matching defs:rc

755 	int rc = -1;
760 rc = getfilecon(pkgdir, &ctx_str);
761 if (rc < 0)
769 rc = seapp_context_lookup(SEAPP_TYPE, uid, 0, seinfo, pkgname, NULL, ctx);
770 if (rc == -1)
772 else if (rc == -2)
779 rc = security_check_context(ctx_str);
780 if (rc < 0)
784 rc = setfilecon(pkgdir, ctx_str);
785 if (rc < 0)
789 rc = 0;
793 return rc;
797 rc = -1;
801 rc = -1;
812 int rc = -1;
817 rc = getcon(&ctx_str);
818 if (rc)
826 rc = seapp_context_lookup(SEAPP_DOMAIN, uid, isSystemServer, seinfo, pkgname, NULL, ctx);
827 if (rc == -1)
829 else if (rc == -2)
836 rc = security_check_context(ctx_str);
837 if (rc < 0)
841 rc = setcon(ctx_str);
842 if (rc < 0)
846 rc = 0;
851 return rc;
862 rc = -1;
866 rc = -1;
1073 int rc = 0;
1125 rc = seapp_context_lookup(SEAPP_TYPE, pkgInfo ? pkgInfo->uid : uid, 0,
1127 if (rc < 0)
1137 rc = security_check_context(secontext);
1138 if (rc < 0)
1146 rc = 0;
1151 return rc;
1155 rc = -1;
1167 int rc = 0;
1198 rc = 0;
1203 return rc;
1209 rc = -1;
1441 int fd = -1, rc;
1476 rc = security_load_policy(map, sb.st_size);
1477 if (rc < 0) {
1500 int rc;
1501 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1502 if (rc < 0) {
1510 rc = mkdir(mnt, 0755);
1511 if (rc == -1 && errno != EEXIST) {
1516 rc = mount(SELINUXFS, mnt, SELINUXFS, 0, NULL);
1519 if (rc < 0) {