Native FS: Refine restricted path blocking logic
The list of blocked paths may include nested entries. Apply the child-blocking setting of the narrowest ancestor path. Eg. If /foo blocks children, but /foo/bar doesn't, allow foo/bar/baz. Bug: 996230 Test: Chrome OS allows Native FS access to files in Downloads, etc. Change-Id: I4a0132f30c85328f543c6758aa76e1625dd21515 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1777102 Commit-Queue: Michael Wasserman <msw@chromium.org> Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Auto-Submit: Michael Wasserman <msw@chromium.org> Reviewed-by:Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/master@{#691905}
Showing
Please register or sign in to comment