From cde31a9d4dcaf1f4631154a9b75f22fe12245b22 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Tue, 1 Aug 2023 10:54:56 +0900 Subject: [PATCH] Change seapp partition log to warning It makes more sense to print it as a warning, because it's not a hard error for now (until we resolve all violations and create a compliance test) Bug: N/A Test: boot Change-Id: Iac5deb1f965394ecd4c2acb3711bd07317956236 --- libselinux/src/android/android_seapp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libselinux/src/android/android_seapp.c b/libselinux/src/android/android_seapp.c index 7e847a8a..273ac72c 100644 --- a/libselinux/src/android/android_seapp.c +++ b/libselinux/src/android/android_seapp.c @@ -917,7 +917,7 @@ int seapp_context_lookup_internal(enum seapp_kind kind, if (isPreinstalledApp && !is_preinstalled_app_partition_valid(cur->partition, partition)) { // TODO(b/280547417): make this an error after fixing violations - selinux_log(SELINUX_ERROR, + selinux_log(SELINUX_WARNING, "%s: App %s preinstalled to %s can't be labeled with %s sepolicy", __FUNCTION__, pkgname, partition, cur->partition); }