We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f20eaac + ddee67c commit 08207eeCopy full SHA for 08207ee
lib/Basic/Sandbox.cpp
@@ -21,8 +21,11 @@ static StringRef sandboxProfile(llvm::BumpPtrAllocator &Alloc) {
21
// Import the system sandbox profile.
22
contents += "(import \"system.sb\")\n";
23
24
- // Allow reading all files, we need to read various system files.
25
- contents += "(allow file-read*)\n";
+ // Allow reading file metadata of any files.
+ contents += "(allow file-read-metadata)\n";
26
+
27
+ // Allow reading dylibs.
28
+ contents += "(allow file-read* (regex #\"\\.dylib$\"))\n";
29
30
// This is required to launch any processes (execve(2)).
31
contents += "(allow process-exec*)\n";
0 commit comments