diff options
author | Yi-Yo Chiang <yochiang@google.com> | 2021-05-19 17:19:58 +0800 |
---|---|---|
committer | Yi-Yo Chiang <yochiang@google.com> | 2021-05-27 16:55:28 +0800 |
commit | 18a6cc2bac6975ecfd954a33bbca2544d2778683 (patch) | |
tree | c42c7d73cdd5d180c781a206370ba75e7c68f3a7 /libutils/ProcessCallStack_fuzz.cpp | |
parent | 8570398065235ed519c3de58769519dfc4a27428 (diff) |
Make fs_mgr_overlayfs_mount_fstab_entry() available for user builds
Rename fs_mgr_overlayfs_mount_fstab_entry() to
fs_mgr_mount_overlayfs_fstab_entry() and move it out of
fs_mgr_overlayfs.cpp to make it available for user builds.
Add checks to unsure overlayfs mount point doesn't contain symbolic
link or /../.
Check the mount point with an allowlist if user build. The mount point
should either be /vendor, /product ... or their submounts, or strict
submounts of /mnt/vendor and /mnt/product.
Bug: 188862155
Test: Boot test with overlayfs mount entries on user build
Change-Id: I3b60dfa4b63cf2ae0754f53d1d08365aa7be1ee0
Merged-In: I3b60dfa4b63cf2ae0754f53d1d08365aa7be1ee0
(cherry picked from commit 23816e84ca8821f303d9a3e753d7c050881bacd5)
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions