Skip to content

Add sandbox support - #1062

Merged
ktf merged 1 commit into
alisw:masterfrom
ktf:pr1062
Oct 28, 2026
Merged

ktf merged 1 commit into
alisw:masterfrom
ktf:pr1062

Conversation

@ktf

@ktf ktf commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

No description provided.

@ktf

ktf commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

@pbuncic: could you add something like this in bits as well? It isolates mac builds.

@pbuncic

pbuncic commented Oct 15, 2026

Copy link
Copy Markdown

Thanks! bits already has a sandbox (--sandbox=sandbox-exec / auto, nested podman under --docker). It denies by default and blocks the network unless a recipe sets sandbox_network: off, but it let a build write anywhere in the work dir. I’ve taken over your per-package write scope, the nesting check, the kept sandbox.sb, the failure hint and --sandbox-allow-write. On macOS it can be turned on with BITS_SANDBOX=1 or sandbox: on in the defaults.

@ktf
ktf merged commit 7b5f21e into alisw:master Oct 28, 2026
14 of 15 checks passed
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.

2 participants