Revert "Make coredomain violation as a build error"
This reverts commit 9289cf6fa7176080da2658957b5358b059b0bf3f.
Reason for revert:
DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=cf_x86_64_auto-trunk_staging-userdebug&lkgb=10733608&lkbb=10733914&fkbb=10733779, bug b/298102197
Bug: 298102197
Change-Id: Ia68dc64d3a7b02195e72d1c85ae8c9280fa665cc
diff --git a/tools/check_seapp.c b/tools/check_seapp.c
index b80d0e6..41a713d 100644
--- a/tools/check_seapp.c
+++ b/tools/check_seapp.c
@@ -1312,23 +1312,10 @@
}
}
- bool coredomain_violation = false;
list_for_each(&coredomain_violation_list, cursor) {
c = list_entry(cursor, typeof(*c), listify);
fprintf(stderr, "Forbidden attribute " COREDOMAIN " assigned to domain \"%s\" in "
- "File \"%s\" on line %d\n", c->domain, c->filename, c->lineno);
- coredomain_violation = true;
- }
-
- if (coredomain_violation) {
- fprintf(stderr, "********************************************************************************\n");
- fprintf(stderr, "You tried to assign coredomain with vendor seapp_contexts, which is not allowed.\n"
- "Either move offending entries to system, system_ext, or product seapp_contexts,\n"
- "or remove 'coredomain' attribute from the domains.\n"
- "See an example of how to fix this:\n"
- "https://android-review.googlesource.com/2671075\n");
- fprintf(stderr, "********************************************************************************\n");
- found_issues = true;
+ "File \"%s\" on line %d\n", c->domain, c->filename, c->lineno);
}
if (found_issues) {