Revert "Make coredomain violation as a build error"

This reverts commit 9289cf6fa7.

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
This commit is contained in:
Samuel Wu 2023-08-29 23:37:34 +00:00
parent 9289cf6fa7
commit 3bda1c9761

View file

@ -1312,23 +1312,10 @@ static void validate() {
}
}
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) {