Skip to content

Experiments in using `sandbox-exec` to create a slightly locked-down environment for Julia testing

Notifications You must be signed in to change notification settings

staticfloat/MacOSSandboxExperiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacOS sandboxing experiments

To run a Julia test, use make sandbox-FOO where FOO is the name of a valid argument to Base.runtests(). Good examples are all, cmdlineargs, InteractiveUtils, etc...

To compare against unsandboxed execution, run test-FOO.

Known issues:

With a few patches merged, this is now working as expected!

Workarounds in place:

The following tests have strange behavior that we should probably fix:

  • cmdlineargs test requires writing to share/julia/test/testhelpers
  • get_anon_hdl() ignores $TMPDIR, instead always writing to /tmp
  • Profile looks up lineinfo data which uses paths embedded during build, so it requires read access to paths that most likely do not exist (e.g. /Users/julia/buildbot/worker/package_macos64/build).

Reading list:

About

Experiments in using `sandbox-exec` to create a slightly locked-down environment for Julia testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published