summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2017-11-02 14:17:43 -0700
committerLuis Hector Chavez <lhchavez@google.com>2017-11-03 13:02:46 -0700
commite97a4b9799f25b10c50fccb20eb0af69f14fe8dc (patch)
tree5fd03695b3f1c24618f9a52f51c2ecd342685608 /libcutils/sockets_unix.cpp
parent0d323c12df99201a341f0fb34ed543a46ec6eb86 (diff)
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/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions