commit | 18eb8772467d45a234cd4343a4e9a45cb938d996 | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Mon Oct 18 22:33:15 2021 -0700 |
committer | Alex Buynytskyy <alexbuy@google.com> | Mon Jan 31 22:13:14 2022 +0000 |
tree | 9d367be630c1eebb27be99c4b9a01fdc6f55c7fd | |
parent | 313e8556a6fe5b23f4cc0e83fbdc2b0933f5d65c [diff] |
[vold] Check incremental paths before mounting Vold was trusting system_server too much and allowed for pretty much any path in mount()/bindMount() calls for incremental. This CL adds validation to make sure it's only accessing own directories. This includes enforcing no symlinks in the paths Bug: 198657657 Bug: 216722132 Test: manual Change-Id: I6035447f94ef44c4ae3294c3ae47de2d7210683a Merged-In: I6035447f94ef44c4ae3294c3ae47de2d7210683a