diff options
author | Yifan Hong <elsk@google.com> | 2019-03-19 11:39:14 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-03-21 16:00:00 -0700 |
commit | dd6eefca303755264434454fddc0cc627e834577 (patch) | |
tree | f5df3c9b9bc70724f04382d57ebd05b9abdf17d6 /init/service.cpp | |
parent | 7acb0d39e858c2f4251298e722ffe42ca7924156 (diff) | |
download | system_core-dd6eefca303755264434454fddc0cc627e834577.tar.gz system_core-dd6eefca303755264434454fddc0cc627e834577.tar.bz2 system_core-dd6eefca303755264434454fddc0cc627e834577.zip |
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
Diffstat (limited to 'init/service.cpp')
0 files changed, 0 insertions, 0 deletions