diff options
author | Yi-Yo Chiang <yochiang@google.com> | 2021-05-27 22:29:32 +0800 |
---|---|---|
committer | Yi-Yo Chiang <yochiang@google.com> | 2021-06-03 15:53:12 +0800 |
commit | 84fe96bfbc1441eaace6b6b88997c2779abf03b6 (patch) | |
tree | cf3db84b7215e3f8b7b2efbc4066caa69f523243 /libutils/String16_test.cpp | |
parent | a79bc0d1b3c8a89ba4fd529d45e348f57e893688 (diff) |
first_stage_mount: mount point must be canonical path
Ban weird paths such as /../system or //vendor in first stage mount.
Add utility function fs_mgr_create_canonical_mount_point() that:
* mkdir(mount_point) to ensure mount_point's existence
* Test that realpath(mount_point) =?= mount_point
Bug: 188898525
Test: Presubmit
Test: Boot CF
Change-Id: Iaf2ec52701277f26cc81f3e15a47b6083a788334
Merged-In: Iaf2ec52701277f26cc81f3e15a47b6083a788334
(cherry picked from commit 3431d52675f25020b279c9fbcda6b8648f9cf67b)
Diffstat (limited to 'libutils/String16_test.cpp')
0 files changed, 0 insertions, 0 deletions