commit | 40389820e29dd8c845d594983f80534be940be5b | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Mon Oct 18 22:33:15 2021 -0700 |
committer | Yurii Zubrytskyi <zyy@google.com> | Tue Nov 02 21:46:31 2021 +0000 |
tree | cd61b26823041320f3d30f25ea93bb2cb97981ed | |
parent | 4fb97923e5bc781245594e7b422eb2e127c6648d [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 Ignore-AOSP-First: security fix Bug: 198657657 Test: manual Change-Id: I6035447f94ef44c4ae3294c3ae47de2d7210683a Merged-In: I6035447f94ef44c4ae3294c3ae47de2d7210683a