Commit 76ba126
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments