[hardening] Switch to hardened libziparchive in system_server

Use the new libziparchive_hardened in all system_server
dependencies to ensure no missing page access can crash
the process

Bug: 160635079
Test: IncrementalService tests + adb install --incremental
Change-Id: I1c664e111b69718cd9c62fc3e0d6a5dc70bed16b
This commit is contained in:
Yurii Zubrytskyi
2021-02-26 03:53:04 -05:00
parent 4183c1d4a7
commit 80d0f4c66b
4 changed files with 4 additions and 6 deletions

View File

@@ -69,10 +69,9 @@ cc_library_shared {
"liblog",
"libminikin",
"libz",
"libziparchive",
],
static_libs: ["libnativehelper_lazy"],
static_libs: ["libnativehelper_lazy", "libziparchive_for_incfs", ],
export_include_dirs: [
".",

View File

@@ -97,8 +97,8 @@ cc_library {
"libincfs",
"libutils",
"libz",
"libziparchive",
],
static_libs: ["libziparchive_for_incfs"],
static: {
enabled: false,
},

View File

@@ -388,11 +388,10 @@ cc_defaults {
"liblog",
"libminikin",
"libz",
"libziparchive",
"libjpeg",
],
static_libs: ["libnativehelper_lazy"],
static_libs: ["libnativehelper_lazy", "libziparchive_for_incfs"],
target: {
android: {

View File

@@ -68,6 +68,7 @@ cc_defaults {
"libutils",
"libvold_binder",
"libc++fs",
"libziparchive_for_incfs",
],
shared_libs: [
"libandroidfw",
@@ -77,7 +78,6 @@ cc_defaults {
"libincfs",
"liblog",
"libz",
"libziparchive",
],
}