commit | b50868065a4cf0c15e96aea66732afc89c388022 | [log] [tgz] |
---|---|---|
author | Zim <zezeozue@google.com> | Thu Nov 04 11:05:39 2021 +0000 |
committer | Zimuzo Ezeozue <zezeozue@google.com> | Thu Nov 04 11:08:14 2021 +0000 |
tree | fc14868b4c56f13a6b79383cd8de6b8435f4ef63 | |
parent | e0eec792474a1ab0cc327a3fc53440fbb3c2abf4 [diff] |
Open all files with O_NOFOLLOW. SD cards don't support symlinks, so we have no reason to try following them if somehow an evil caller is able to sneak them into the database. Bug: 124329382 Bug: 200682135 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: Idb1f3ee1db90913a97a50515003f211519037066 Merged-In: Idb1f3ee1db90913a97a50515003f211519037066