Skip to content

Conversation

@bsayed
Copy link
Contributor

@bsayed bsayed commented Dec 15, 2025

Added optional seccomp-BPF syscall filtering and filesystem isolation for process-based agents using Google's minijail library.

  • Add sandbox-minijail feature flag with minijail/tempfile deps
  • Extend Initializer trait with seccomp_policy() and pivot_root_fs_config()
  • Create minijail module with SeccompPolicy, PivotRootFsConfig, apply_minijail()
  • Integrate into spawn_process_impl pre_exec hook
  • Add architecture documentation with Mermaid diagrams.
  • Added a feature to run a custom executable in the process agent instead of running a fork(copy) of the current executable.

This enables defense-in-depth security for agents handling sensitive data or using third-party libraries, complementing the existing network namespace isolation (sandbox-network feature).

for process-based agents using Google's minijail library.
- Add `sandbox-minijail` feature flag with minijail/tempfile deps
- Extend Initializer trait with seccomp_policy() and pivot_root_fs_config()
- Create minijail module with SeccompPolicy, PivotRootFsConfig, apply_minijail()
- Integrate into spawn_process_impl pre_exec hook
- Add architecture documentation with mermaid diagrams
This enables defense-in-depth security for agents handling sensitive
data or using third-party libraries, complementing the existing
network namespace isolation (sandbox-network feature).
@bsayed bsayed requested a review from a team as a code owner December 15, 2025 19:13
@bsayed bsayed marked this pull request as draft December 15, 2025 19:14
…ms, which will allow minijail-sys to find the libcap.pc file it needs during its build.
@bsayed bsayed self-assigned this Dec 15, 2025
@bsayed bsayed marked this pull request as ready for review December 18, 2025 17:24
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