summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Hector Chavez2017-11-02 16:17:43 -0500
committerLuis Hector Chavez2017-11-03 15:02:46 -0500
commite97a4b9799f25b10c50fccb20eb0af69f14fe8dc (patch)
tree5fd03695b3f1c24618f9a52f51c2ecd342685608 /libcutils/Android.bp
parent0d323c12df99201a341f0fb34ed543a46ec6eb86 (diff)
downloadplatform-system-core-e97a4b9799f25b10c50fccb20eb0af69f14fe8dc.tar.gz
platform-system-core-e97a4b9799f25b10c50fccb20eb0af69f14fe8dc.tar.xz
platform-system-core-e97a4b9799f25b10c50fccb20eb0af69f14fe8dc.zip
libcutils: Make uevent_kernel_* namespace-aware
This change adds user namespace-awareness to uevent_kernel_* in libcutils. Instead of assuming that root is always uid 0, it detects whether the uid 0 is mapped in the current user namespace and returns the appropriately mapped uid (or the kernel's "overflowuid" in case it is not mapped). In older kernels, or those where user namespaces are not enabled, this still uses uid 0 for root. Bug: 62378620 Test: bullhead networking still works Test: Android in Chrome OS can now receive netlink-related messages Change-Id: I7ea3454e8f38b9c70c65294d6b2a99e5a88f9d70
Diffstat (limited to 'libcutils/Android.bp')
-rw-r--r--libcutils/Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/Android.bp b/libcutils/Android.bp
index cfe8d2931..f48330867 100644
--- a/libcutils/Android.bp
+++ b/libcutils/Android.bp
@@ -112,7 +112,7 @@ cc_library {
112 "properties.cpp", 112 "properties.cpp",
113 "qtaguid.c", 113 "qtaguid.c",
114 "trace-dev.c", 114 "trace-dev.c",
115 "uevent.c", 115 "uevent.cpp",
116 ], 116 ],
117 sanitize: { 117 sanitize: {
118 misc_undefined: ["integer"], 118 misc_undefined: ["integer"],