platform_system_core/libcutils
Yifan Hong dd6eefca30 libcutils: android_get_control_file uses realpath.
If the path to android_get_control_file is a symlink, the final sanity
check will fail that the fd does not have the same path as the given
file. We can't expect callers to readlink() because this would change
the environment key. Instead, try to call realpath on both paths.

Bug: 126233777
Test: lpdump
Change-Id: I0df10d7dbe3e572b8335faad812e5cd80bff1733
2019-03-21 16:00:00 -07:00
..
arch-arm Switch arch-arm/memset32.S to unified syntax. 2015-05-11 22:22:13 -07:00
arch-arm64 Add android_memset16/android_memset32 for aarch64. 2014-06-23 19:28:33 -07:00
arch-mips android_memset.c: Use sanitized shifts 2015-08-27 14:32:17 -07:00
arch-x86 Clean up memset[16,32] routines: unify files names, remove redundant wrapper 2014-09-17 18:11:18 +04:00
arch-x86_64 Clean up memset[16,32] routines: unify files names, remove redundant wrapper 2014-09-17 18:11:18 +04:00
include DO NOT MERGE - Merge PPRL.190305.001 into master 2019-03-11 11:57:28 -07:00
include_vndk/cutils libcutils: remove unused open_memstream. 2018-07-11 14:28:21 -07:00
Android.bp Clean up some mess by only building Android-specific code for the device. 2019-03-21 14:59:45 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
OWNERS libcutils: add OWNERS. 2018-06-12 13:58:30 -07:00
android_get_control_env.h Clean up some mess by only building Android-specific code for the device. 2019-03-21 14:59:45 -07:00
android_get_control_file.cpp libcutils: android_get_control_file uses realpath. 2019-03-21 16:00:00 -07:00
android_get_control_file_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
android_get_control_socket_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
android_reboot.cpp Stop defining local "unused" macros now this is C++. 2017-11-30 16:24:36 -08:00
ashmem-dev.cpp Add support for memfd 2019-02-07 00:40:13 +00:00
ashmem-host.cpp Remove more bogus <stdbool.h> #includes from C++. 2018-05-08 13:00:06 -07:00
ashmem_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
canned_fs_config.cpp Remove more bogus <stdbool.h> #includes from C++. 2018-05-08 13:00:06 -07:00
config_utils.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
fs.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
fs_config.cpp Remove Valgrind entries from fs_config. 2019-03-13 17:12:00 +00:00
fs_config_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
hashmap.cpp cutils: move hashmap to <pthread.h>. 2018-07-13 10:54:49 -07:00
iosched_policy.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
klog.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
load_file.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
memset_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
multiuser.cpp Better, consistent definition of AID_SHARED_GID. 2017-11-13 16:49:26 -07:00
multiuser_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
native_handle.cpp Export maximum number of fds/ints in a native_handle. 2019-01-16 08:55:14 -08:00
partition_utils.cpp Start using new C++ Fstab class widely 2018-12-12 17:08:09 +00:00
properties.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
properties_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
qtaguid.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
record_stream.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
sched_policy_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
socket_inaddr_any_server_unix.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
socket_inaddr_any_server_windows.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
socket_local_client_unix.cpp Stop defining local "unused" macros now this is C++. 2017-11-30 16:24:36 -08:00
socket_local_server_unix.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
socket_local_unix.h libcutils: share Windows networking code. 2016-01-15 15:57:35 -08:00
socket_network_client_unix.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
socket_network_client_windows.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
sockets.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
sockets_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
sockets_unix.cpp Clean up some mess by only building Android-specific code for the device. 2019-03-21 14:59:45 -07:00
sockets_windows.cpp Fix / suppress new unused warnings for mingw+clang 2017-11-29 21:37:28 -08:00
str_parms.cpp libcutils: remove some unused API. 2018-07-11 14:27:32 -07:00
str_parms_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
strdup8to16.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
strdup16to8.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
strlcpy.c Fix Windows strlcpy.c build. 2015-04-02 17:21:47 -07:00
threads.cpp Fix / suppress new unused warnings for mingw+clang 2017-11-29 21:37:28 -08:00
trace-container.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00
trace-dev.cpp Revert "Don't initialize atrace if it's already disabled." 2018-02-08 00:49:37 +00:00
trace-dev.inc __android_log_is_debuggable() shouldn't be an apex symbol 2019-02-20 12:52:02 -08:00
trace-dev_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
trace-host.cpp Stop defining local "unused" macros now this is C++. 2017-11-30 16:24:36 -08:00
uevent.cpp Increase netlink uevent rcvbuf size to 16M 2018-12-03 18:39:24 +00:00