aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-03-31 15:26:07 +0900
committerJiyong Park <jiyong@google.com>2020-04-13 13:09:04 +0900
commite1eae96a17291fc79fad2b28ef150ce42802c05c (patch)
treeb585deb51a5fd781b866ea9de8e4c9b671097100
parent65d1587f4cebd439b115ca11f147534b43bbc332 (diff)
downloadselinux-android11-mainline-os-statsd-release.tar.gz
libselinux has stable C APIs and therefore provides a stub library for Mainline clients. It is not copied into any Mainline modules and the only instance of the lib in /system/lib serves all of them. However for vendors, we still had another copy of libselinux in VNDK (e.g. in the VNDK APEX that is served via the path /system/lib/vndk). Since the library is guaranteed to have stable C APIs, there is no reason to keep the vendor variant of the library in VNDK. Keeping it in VNDK would be just a waste of storage space. This change removes libselinux from VNDK and marks it as LLNDK. The single instance of if in /system/lib serves vendor processes as well as Mainline modules. Exempt-From-Owner-Approval: cherry-pick from AOSP Bug: 151303316 Test: m Merged-In: Ibb3e125c1bf4ef7873ae8df0795e781f64d743f1 (cherry picked from commit 1ea855ee67517de609aa1e78851f623fc696e143) Change-Id: Ibb3e125c1bf4ef7873ae8df0795e781f64d743f1
-rw-r--r--libselinux/Android.bp11
1 files changed, 6 insertions, 5 deletions
diff --git a/libselinux/Android.bp b/libselinux/Android.bp
index 90dfe183..664e9288 100644
--- a/libselinux/Android.bp
+++ b/libselinux/Android.bp
@@ -100,11 +100,6 @@ cc_library {
name: "libselinux",
defaults: ["libselinux_defaults"],
- vendor_available: true,
- vndk: {
- enabled: true,
- },
- double_loadable: true,
recovery_available: true,
host_supported: true,
@@ -214,6 +209,12 @@ cc_library {
},
}
+llndk_library {
+ name: "libselinux",
+ export_include_dirs: ["include"],
+ symbol_file: "exported.map",
+}
+
cc_binary_host {
name: "sefcontext_compile",
defaults: ["libselinux_defaults"],