Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sandbox trampoline implementation #935

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Nov 11, 2024

This is the new rattler_sandbox!

It works as follows:

  • users of the sandbox need to call sandbox_init before almost anything else in their applications. That will enable a special CLI handler to act as a trampoline. Most importantly, it should execute before any other threads are launched.
  • the trampoline in this case means that the app can also sandbox processes when invoked with e.g. rattler-build __sandbox_trampoline__ --fs-read /foo/ ls.

The API returns a regular Command struct so that arguments can be added and things can be set like cwd, env vars, etc.

We use birdcage, so things should work on Linux and macOS, with Windows support (through AppContainer) in the works.

@wolfv wolfv changed the title sandbox trampoline implementation feat: sandbox trampoline implementation Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant