DescriptionFix Mac sandbox meta data access
Sandbox::AllowMetadataForPath() currently allow all metadata access due to
https://codereview.chromium.org/10539009/ made the for loop comparison
in Sandbox::AllowMetadataForPath() always false, when we actually only
want to allow access to the path and all its parent path until root.
Turn the for loop to a do/while loop instead as it's a better fit, also
add a test case for Sandbox::AllowMetadataForPath().
It should only affect component builds on OS X 10.6 and utility process
as no other process is using this mechanism.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289526
Patch Set 1 #
Messages
Total messages: 11 (0 generated)
|