-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(sandbox): replace brew policy preset with first-class brew subcommand #3878
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
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ae649f0
fix(sandbox): replace brew policy preset with first-class brew subcom…
laitingsheng 75dbd2a
fix(sandbox): address Codex review on brew subcommand PR
laitingsheng 621c769
fix(sandbox): address CodeRabbit + CodeQL review on brew PR
laitingsheng 4e61536
feat(sandbox-brew): --yes + NEMOCLAW_NON_INTERACTIVE auto-runs brew i…
laitingsheng 5149713
fix(sandbox-brew): address second-round Codex review on brew PR
laitingsheng 4dee049
Merge branch 'main' into feat/sandbox-brew-command
laitingsheng 041518b
fix(policy): warn and prune stale built-in preset names from sandbox …
laitingsheng ab38391
fix(sandbox): address third-round Codex review on brew PR
laitingsheng 8af38ab
fix(sandbox): address fourth-round Codex review on brew PR
laitingsheng 6c86951
fix(sandbox): resolve docker-driver container by OpenShell label, dro…
laitingsheng 7ee8ed1
Merge remote-tracking branch 'origin/main' into feat/sandbox-brew-com…
laitingsheng a4e2bea
Merge remote-tracking branch 'origin/main' into feat/sandbox-brew-com…
laitingsheng e3e1015
fix(sandbox): wrap docker exec with runuser so HOME is set per-user
laitingsheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Internal policy applied by `nemoclaw <name> brew init` and removed by | ||
| # `nemoclaw <name> brew deinit`. Not listed as a user-facing preset | ||
| # (this file lives outside `policies/presets/`, so `listPresets()` and | ||
| # `policy-add` cannot see it). The binaries section is the load-bearing | ||
| # half — without it, Landlock denies execve on /home/linuxbrew/.linuxbrew/* | ||
| # from inside the sandbox. | ||
|
|
||
| preset: | ||
| name: __brew_runtime__ | ||
| description: "Homebrew (Linuxbrew) runtime — applied by `brew init`." | ||
|
|
||
| network_policies: | ||
| brew: | ||
| name: brew | ||
| endpoints: | ||
| - host: formulae.brew.sh | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - host: github.com | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - host: ghcr.io | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - allow: { method: POST, path: "/token" } | ||
| - host: pkg-containers.githubusercontent.com | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - host: objects.githubusercontent.com | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| - host: raw.githubusercontent.com | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| rules: | ||
| - allow: { method: GET, path: "/**" } | ||
| binaries: | ||
| - { path: /usr/bin/curl } | ||
| - { path: /usr/bin/git } | ||
| - { path: /home/linuxbrew/.linuxbrew/bin/brew } | ||
| - { path: /home/linuxbrew/.linuxbrew/bin/* } | ||
| - { path: /home/linuxbrew/.linuxbrew/Homebrew/bin/* } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.