Home | History | Annotate | Download | only in src

Lines Matching defs:rc

72 	int rc;
77 rc = sidtab_context_to_sid(&avc_sidtab, ctx, sid);
79 return rc;
99 int rc;
103 rc = *ctx ? 0 : -1;
105 return rc;
135 int rc;
138 rc = security_get_initial_context_raw(name, &con);
139 if (rc < 0)
140 return rc;
141 rc = avc_context_to_sid_raw(con, sid);
145 return rc;
170 int i, rc = 0;
191 rc = sidtab_init(&avc_sidtab);
192 if (rc) {
204 rc = -1;
222 rc = security_getenforce();
223 if (rc < 0) {
230 avc_enforcing = rc;
233 rc = avc_netlink_open(0);
234 if (rc < 0) {
246 return rc;
428 int probes, rc = 0;
441 rc = -1;
443 return rc;
470 int rc = 0;
477 rc = -1;
483 rc = -1;
490 return rc;
502 int i, ret, rc = 0, errsave = 0;
532 if (ret && !rc) {
533 rc = ret;
539 return rc;
602 static int missed, rc = 0;
621 rc = 1;
628 return rc;
751 int rc = 0;
786 rc = avc_lookup(ssid, tsid, tclass, requested, aeref);
787 if (rc) {
788 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx,
791 if (rc && errno == EINVAL && !avc_enforcing) {
792 rc = errno = 0;
795 if (rc)
797 rc = avc_insert(ssid, tsid, tclass, &entry, aeref);
798 if (rc)
815 rc = -1;
821 return rc;
831 int errsave, rc;
833 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, aeref, &avd);
835 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata);
837 return rc;
843 int rc;
854 rc = avc_lookup(ssid, tsid, tclass, 0, &aeref);
855 if (rc) {
857 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx,
859 if (rc)
861 rc = avc_insert(ssid, tsid, tclass, &entry, &aeref);
862 if (rc)
869 rc = security_compute_create_raw(ssid->ctx, tsid->ctx, tclass,
871 if (rc)
873 rc = sidtab_context_to_sid(&avc_sidtab, ctx, newsid);
875 if (rc)
884 rc = 0;
887 return rc;
893 int rc;
900 rc = security_compute_member_raw(ssid->ctx, tsid->ctx, tclass, &ctx);
901 if (rc)
903 rc = sidtab_context_to_sid(&avc_sidtab, ctx, newsid);
907 return rc;
920 int rc = 0;
924 rc = -1;
937 return rc;
1016 int ret, rc = 0, errsave = 0;
1036 if (ret && !rc) {
1037 rc = ret;
1058 return rc;
1124 int rc;
1126 rc = avc_reset();
1133 return rc;