[2.5 backport] Allow the macOS sandbox to write in the /var/folders/ and /var/db/mds/ directories#6775
Merged
kit-ty-kate merged 1 commit intoocaml:2.5from Nov 4, 2025
Conversation
…mds/` directories It is required by some of macOS core tools such as security(1) and previous TMPDIR stored in /var/folders/*/*/T/ have been seen accessed by xcode in the wild on occasion. While the /var/folders/*/*/C/ directory contain things that are kept indefinitely, these files are in theory understood by applications to be writeable by anyone and thus not trusted. The mds subdirectory is a cache used to search for files in the system. Both of these are part of other tools that use sandbox-exec such as MacPorts. See for example: https://github.com/macports/macports-base/blob/2c6fc24ddd1d6961afa83c5b35be12224b6850f6/src/port1.0/portsandbox.tcl#L92
rjbou
approved these changes
Nov 4, 2025
Member
Author
|
The Doc-* jobs fail due to the change of target branch after the last push ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #4797 to the 2.5 branch