-
Notifications
You must be signed in to change notification settings - Fork 954
feat(execd): add isolation package with bwrap support #1008
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
Open
Pangjiping
wants to merge
8
commits into
opensandbox-group:main
Choose a base branch
from
Pangjiping:osep-0013-phase1-isolation-core
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1a0fa53
feat(execd): add isolation package with bwrap support (OSEP-0013 Phas…
Pangjiping 89ea941
feat(execd): implement isolated session API (OSEP-0013 Phase 2)
Pangjiping efe576f
feat(execd): Phase 3 — seccomp, telemetry, OpenAPI spec, coverage tes…
Pangjiping 4ae496e
docs(spec): add /v1/isolated API to OpenAPI spec (OSEP-0013)
Pangjiping 2419e1e
feat(execd): PR review fixes, TOML config, API simplification, VFS in…
Pangjiping effa60c
feat(sdks,server): 5-language SDK, server bwrap distribution, E2E tes…
Pangjiping 5c7e662
fix(execd): address PR review — env defaults, prefix bypass, timeout,…
Pangjiping 8d2767f
fix(execd): address 7 more review issues (OSEP-0013)
Pangjiping 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # Isolation configuration for execd. | ||
| # | ||
| # Usage: | ||
| # execd --isolation-config /etc/execd/isolation.toml | ||
| # EXECD_ISOLATION_CONFIG=/etc/execd/isolation.toml execd | ||
| # | ||
| # All fields are optional. Missing fields use the defaults shown below. | ||
| # If no config file is specified, all built-in defaults are used. | ||
|
|
||
| # Parent directory for per-session overlay upper directories. | ||
| upper_root = "/var/lib/execd/isolation" | ||
|
|
||
| # Hard limit on total upper directory size across all sessions (bytes). | ||
| upper_max_bytes = 8589934592 # 8 GiB | ||
|
|
||
| # Maximum tar.gz diff output size (bytes). Phase 2. | ||
| diff_max_bytes = 4294967296 # 4 GiB | ||
|
|
||
| # Paths that callers may request as extra_writable. Empty = reject all. | ||
| allowed_writable = [] | ||
|
|
||
| # Seccomp is ALWAYS ACTIVE by default — the built-in denylist blocks ~30 | ||
| # dangerous syscalls (mount, ptrace, bpf, etc.) even without this section. | ||
| # | ||
| # Only add [seccomp] if you need to REPLACE the built-in denylist with a | ||
| # custom one. When present, deny COMPLETELY REPLACES the built-in list — | ||
| # no merging. Syscalls not present on the current architecture are silently | ||
| # skipped. | ||
| # | ||
| # Built-in default denylist for reference: | ||
| # | ||
| # [seccomp] | ||
| # deny = [ | ||
| # # Filesystem manipulation | ||
| # "mount", "umount2", "chroot", "pivot_root", | ||
| # | ||
| # # Process introspection / manipulation | ||
| # "ptrace", "process_vm_readv", "process_vm_writev", "kcmp", | ||
| # | ||
| # # Kernel module loading | ||
| # "init_module", "finit_module", "delete_module", | ||
| # | ||
| # # BPF / seccomp manipulation | ||
| # "bpf", "seccomp", | ||
| # | ||
| # # Execution domain | ||
| # "personality", | ||
| # | ||
| # # Kernel key management | ||
| # "add_key", "request_key", "keyctl", | ||
| # | ||
| # # I/O privilege | ||
| # "iopl", "ioperm", | ||
| # | ||
| # # System state | ||
| # "reboot", "syslog", "swapon", "swapoff", | ||
| # | ||
| # # Namespace manipulation | ||
| # "setns", "unshare", | ||
| # | ||
| # # Handle-based operations | ||
| # "name_to_handle_at", "open_by_handle_at", | ||
| # | ||
| # # Other potentially dangerous | ||
| # "userfaultfd", "kexec_load", "kexec_file_load", "acct", | ||
| # ] |
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
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.