Lines Matching refs:spec2
1235 static enum selabel_cmp_result incomp(struct spec *spec1, struct spec *spec2, const char *reason, int i, int j)
1241 j, spec2->regex_str, spec2->mode, spec2->lr.ctx_raw);
1259 struct spec *spec2 = &spec_arr2[j];
1266 if (!spec1->hasMetaChars && spec2->hasMetaChars) {
1272 if (spec1->hasMetaChars && !spec2->hasMetaChars) {
1278 if (spec1->regex && spec2->regex) {
1279 if (regex_cmp(spec1->regex, spec2->regex) == SELABEL_INCOMPARABLE){
1280 return incomp(spec1, spec2, "regex", i, j);
1283 if (strcmp(spec1->regex_str, spec2->regex_str))
1284 return incomp(spec1, spec2, "regex_str", i, j);
1287 if (spec1->mode != spec2->mode)
1288 return incomp(spec1, spec2, "mode", i, j);
1290 if (spec1->stem_id == -1 && spec2->stem_id != -1)
1291 return incomp(spec1, spec2, "stem_id", i, j);
1292 if (spec2->stem_id == -1 && spec1->stem_id != -1)
1293 return incomp(spec1, spec2, "stem_id", i, j);
1294 if (spec1->stem_id != -1 && spec2->stem_id != -1) {
1296 struct stem *stem2 = &stem_arr2[spec2->stem_id];
1299 return incomp(spec1, spec2, "stem", i, j);
1302 if (strcmp(spec1->lr.ctx_raw, spec2->lr.ctx_raw))
1303 return incomp(spec1, spec2, "ctx_raw", i, j);