e97a4b9799
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 |
||
---|---|---|
.. | ||
arch-arm | ||
arch-arm64 | ||
arch-mips | ||
arch-x86 | ||
arch-x86_64 | ||
include | ||
include_vndk/cutils | ||
tests | ||
Android.bp | ||
android_get_control_env.h | ||
android_get_control_file.cpp | ||
android_reboot.c | ||
ashmem-dev.c | ||
ashmem-host.c | ||
canned_fs_config.c | ||
config_utils.c | ||
dlmalloc_stubs.c | ||
fs.c | ||
fs_config.cpp | ||
hashmap.c | ||
iosched_policy.c | ||
klog.cpp | ||
load_file.c | ||
MODULE_LICENSE_APACHE2 | ||
multiuser.c | ||
native_handle.c | ||
NOTICE | ||
open_memstream.c | ||
partition_utils.c | ||
properties.cpp | ||
qtaguid.c | ||
record_stream.c | ||
sched_policy.cpp | ||
socket_inaddr_any_server_unix.c | ||
socket_inaddr_any_server_windows.c | ||
socket_local_client_unix.c | ||
socket_local_server_unix.c | ||
socket_local_unix.h | ||
socket_network_client_unix.c | ||
socket_network_client_windows.c | ||
sockets.cpp | ||
sockets_unix.cpp | ||
sockets_windows.cpp | ||
str_parms.c | ||
strdup8to16.c | ||
strdup16to8.c | ||
strlcpy.c | ||
threads.c | ||
trace-container.c | ||
trace-dev.c | ||
trace-dev.inc | ||
trace-host.c | ||
uevent.cpp |