Skip to content

Commit 76ba126

Browse files
committed
feat(sandbox): seccomp-notify network enforcement for Platform mode
Add kernel-level network syscall interception using SECCOMP_RET_USER_NOTIF. DnsPinnedAllowlist: DNS pinning at sandbox creation, frozen IPs. BPF filter: connect, sendto, sendmsg, recvfrom, recvmsg, bind with AUDIT_ARCH validation. Non-native ABI routed to NOTIFY for supervisor inspection. compile_error on unsupported architectures. Syscall wrappers: notification fd ioctls, pidfd_open/pidfd_getfd (TOCTOU-safe), verify_socket_fd, read_exact, sockaddr parser, deny/allow_connect helpers. Ref: NVIDIA#899 Signed-off-by: Ladislav Smola <lsmola@redhat.com>
1 parent 90e7e96 commit 76ba126

2 files changed

Lines changed: 586 additions & 0 deletions

File tree

crates/openshell-sandbox/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub mod procfs;
2323
mod provider_credentials;
2424
pub mod proxy;
2525
mod sandbox;
26+
pub mod seccomp_notify;
2627
mod secrets;
2728
mod skills;
2829
mod ssh;

0 commit comments

Comments
 (0)