Skip to content

Commit 0591d22

Browse files
authored
add Mac Java paths to depfile_parsing_sandbox (#1583)
1 parent 2f63333 commit 0591d22

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1111
### Added
1212

1313
- Nix store access to the default sandbox
14+
- Mac OS's Library/Java/JavaVirtualMachines paths to the dependency parsing sandbox
1415

1516
### Fixed
1617

cli/src/commands/parse.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,14 @@ fn depfile_parsing_sandbox(canonical_manifest_path: &Path) -> Result<Birdcage> {
473473
&mut birdcage,
474474
Exception::ExecuteAndRead("/etc/alternatives".into()),
475475
)?;
476+
permissions::add_exception(
477+
&mut birdcage,
478+
Exception::ExecuteAndRead("/Library/Java/JavaVirtualMachines".into()),
479+
)?;
480+
permissions::add_exception(
481+
&mut birdcage,
482+
Exception::ExecuteAndRead(home.join("Library/Java/JavaVirtualMachines")),
483+
)?;
476484
permissions::add_exception(&mut birdcage, Exception::ExecuteAndRead("/etc/maven".into()))?;
477485
for jdk_path in jdk_paths()? {
478486
permissions::add_exception(&mut birdcage, Exception::Read(jdk_path))?;

0 commit comments

Comments
 (0)