commit | 3431d52675f25020b279c9fbcda6b8648f9cf67b | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Thu May 27 22:29:32 2021 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Wed Jun 02 16:38:17 2021 +0800 |
tree | dab53730c92f8ae3840519f3d7d80a65be4a1997 | |
parent | 0f62609aa7706d727624542a7d51abc157b0d951 [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