Skip to content

implement per-workspace capability SIDs for workspace specific ACLs#10189

Merged
iceweasel-oai merged 5 commits intomainfrom
dev/iceweasel/per-workspace-sid
Feb 3, 2026
Merged

implement per-workspace capability SIDs for workspace specific ACLs#10189
iceweasel-oai merged 5 commits intomainfrom
dev/iceweasel/per-workspace-sid

Conversation

@iceweasel-oai
Copy link
Collaborator

@iceweasel-oai iceweasel-oai commented Jan 29, 2026

Today, there is a single capability SID that allows the sandbox to write to

  • workspace (cwd)
  • tmp directories if enabled
  • additional writable roots

This change splits those up, so that each workspace has its own capability SID, while tmp and additional roots, which are installation-wide, are still governed by the "generic" capability SID

This isolates workspaces from each other in terms of sandbox write access.
Also allows us to protect /.codex when codex runs in a specific

@iceweasel-oai
Copy link
Collaborator Author

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f21fad19e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 non-blocking suggestion

.to_string_lossy()
.replace('\\', "/")
.to_ascii_lowercase()
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like something we should encapsulate and reuse across windows logic? Similar to AbsolutePathBuf

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed - I consolidated this from a few places and added a few more tests.

@iceweasel-oai iceweasel-oai merged commit aabe0f2 into main Feb 3, 2026
32 checks passed
@iceweasel-oai iceweasel-oai deleted the dev/iceweasel/per-workspace-sid branch February 3, 2026 20:37
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants