aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/tidy.py
diff options
context:
space:
mode:
authorUlf Nilsson <kaksmet@gmail.com>2016-04-09 11:32:50 +0200
committerUlf Nilsson <kaksmet@gmail.com>2016-04-09 11:32:50 +0200
commitb631202e66784e7d3cbcc2a3e8d4f243e784fd38 (patch)
tree13155ffafcc458cc567fea756143cc11eb5e38b9 /python/tidy/tidy.py
parent90ab488d424511e81902b58056602e2b498866ec (diff)
downloadservo-b631202e66784e7d3cbcc2a3e8d4f243e784fd38.tar.gz
servo-b631202e66784e7d3cbcc2a3e8d4f243e784fd38.zip
Fix sandboxing on OS X
The main issue was resources_dir_path. Every time it was called it would start from the executable's path and walk up the hierarchy to find a directory named "resources". The sandbox was granted permission to read from the found resources dir, but after the sandbox had been activated resources_dir_path would again start from the executable's path and try to find the resources dir. It would then fail with "Operation not permitted" when trying to canonicalize the path because it didn't have permissions to read metadata under ./target. To fix this the resources dir path is now cached between resources_dir_path calls.
Diffstat (limited to 'python/tidy/tidy.py')
0 files changed, 0 insertions, 0 deletions