platform_system_core/libcutils
Luis Hector Chavez e97a4b9799 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
2017-11-03 13:02:46 -07:00
..
arch-arm
arch-arm64
arch-mips
arch-x86
arch-x86_64
include libcutils: Make uevent_kernel_* namespace-aware 2017-11-03 13:02:46 -07:00
include_vndk/cutils Remove private headers from libcutils.vendor 2017-08-02 16:40:36 -07:00
tests libcutils: fs_config: fix "system/<partition>/" aliasing 2017-06-26 14:13:52 -07:00
Android.bp libcutils: Make uevent_kernel_* namespace-aware 2017-11-03 13:02:46 -07:00
android_get_control_env.h
android_get_control_file.cpp
android_reboot.c Switch /data/misc/reboot/last_reboot_reason to persistent property 2017-08-24 15:13:48 -07:00
ashmem-dev.c set O_CLOEXEC on /dev/ashmem 2017-10-09 13:19:36 -07:00
ashmem-host.c
canned_fs_config.c Move android_filesystem_config.h => fs_config.h 2017-08-02 16:31:19 -07:00
config_utils.c
dlmalloc_stubs.c
fs.c
fs_config.cpp resolve merge conflicts of 796987482 to stage-aosp-master 2017-10-17 12:36:14 -07:00
hashmap.c
iosched_policy.c
klog.cpp
load_file.c
MODULE_LICENSE_APACHE2
multiuser.c Allocate a GID range for external cache files. 2017-04-17 14:59:51 -06:00
native_handle.c Preserve errno better in native_handle functions. 2017-05-01 21:34:15 -07:00
NOTICE
open_memstream.c
partition_utils.c
properties.cpp <stdbool.h> not necessary in C++. 2017-10-17 16:21:33 +00:00
qtaguid.c
record_stream.c
sched_policy.cpp Merge "Remove more documentation for obsolete board configuration." am: 73a6512bab am: 09181f3dd9 2017-06-30 00:07:45 +00:00
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 Make sure freeaddrinfo is always called on failure. 2017-08-02 20:32:27 +00:00
socket_network_client_windows.c
sockets.cpp
sockets_unix.cpp
sockets_windows.cpp
str_parms.c
strdup8to16.c
strdup16to8.c
strlcpy.c
threads.c libcutils: Fix thread ID on macOS 2017-10-22 22:58:41 +02:00
trace-container.c libcutils: write trace event into socket in container 2017-08-03 15:16:44 +08:00
trace-dev.c libcutils: write trace event into socket in container 2017-08-03 15:16:44 +08:00
trace-dev.inc libcutils: write trace event into socket in container 2017-08-03 15:16:44 +08:00
trace-host.c
uevent.cpp libcutils: Make uevent_kernel_* namespace-aware 2017-11-03 13:02:46 -07:00