You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
--allow-jit (launch config allow_jit): a per-launch JIT allowance
for the native seccomp filter. JIT runtimes (V8/Node, JVM, PyPy, LuaJIT, .NET)
manage code ranges that are writable and executable at once; V8 has no
fallback for a denied RWX range, so under the default W^X policy no
Node workload gets as far as user code (#46). The allowance
permits write+execute mappings through mmap, mprotect, and pkey_mprotect (no separate --seccomp-allow pkey_mprotect needed), keeps
every other memory guard enforced (executable shmat attachments, memfd_create, device nodes), works with built-in and custom profiles, is
rejected under gVisor, and is recorded in the audit log and reported as security.allow_jit in container_started/container_summary so callers
can attest the posture. W^X stays the default.
--memory-deny-write-execute (launch config memory_deny_write_execute):
sets PR_SET_MDWE on a native workload (#16). The seccomp W^X rule only
refuses a mapping that is writable and executable in one request, so a
workload could write a mapping and make it executable afterwards; any
interpreter with an FFI could run injected native code that way. With the
flag the kernel refuses that step too. The setting is saved with the
launch filter so attach and probe processes get it, is reported as security.memory_deny_write_execute in container_started and container_summary, and is recorded in the audit log. Opt-in, because JIT
runtimes cannot run under it; it conflicts with --allow-jit, is rejected
under gVisor, and needs Linux 6.3 (the launch fails on an older kernel
instead of starting without the protection).
Fixed
Node 26 (V8 14) starts under the built-in seccomp filter. Its startup made
two calls that ended in SIGSYS before user code ran: prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME), which V8 and abseil use to name
every anonymous region they map, is now allowed, argument-filtered to the
naming subcommand; and capget, a read-only query, is allowed by default
(capset stays denied). V8 also needs --allow-jit.
A mapping request that is writable and executable at once now fails with EACCES instead of killing the process (#46). The rule is unchanged: no
such mapping can be created without --allow-jit. EACCES is what the
kernel returns for the same denial under SELinux execmem or PR_SET_MDWE, so a JIT runtime started without the allowance reports the
refusal (the JVM prints "Failed to mark memory page as executable") where
it used to leave only a core dump.
The strict-agent native seccomp profile no longer kills the workload with SIGSYS when it probes an opt-in syscall that was not requested with --seccomp-allow (#45). Un-requested opt-in calls now return ENOSYS,
indistinguishable from a kernel that lacks the call, so runtimes and libc
fall back or report a normal error: Codex's config watcher (inotify_init1),
Go's and tokio's pidfd_open,
V8's pkey_alloc, libuv's io_uring_setup probe (Node 22+/26+), sysinfo, and the splice/tee/sendfile transfers that already
degraded this way. SECURITY_CRITICAL_DENIED_SYSCALLS and PRIVILEGED_SYSCALLS keep the KILL_PROCESS default. The whole-syscall ENOSYS denials compile into a second bitmap, so the filter's O(1)
dispatch is unchanged, and a syscall that is both unconditionally allowed
and unconditionally denied is now rejected at compile time.
File timestamps work by default (#45). An ENOSYS keeps a process alive,
but touch, tar x, cp -p, make and git still failed without utimensat. It and its legacy forms (utimes, utime, futimesat), creat, fchmodat2 and the read-only queries getsid, getpriority, sched_getattr, sched_get_priority_max/min and sched_rr_get_interval
moved from the opt-in list to the default allowlist. Each is a read-only
query or equivalent to a call the default list already allowed.
sendto, recvfrom, sendmsg and recvmsg are argument-filtered in
every network mode instead of being killed with networking denied
(#45). Socket creation is already family-filtered per mode, so the
transfer calls add no reach beyond read/write on descriptors the
workload already holds; Unix datagram IPC (Codex's signal thread) keeps
working under network = none. MSG_OOB stays denied everywhere and setsockopt remains network-only.
--seccomp-allow sync_file_range and --seccomp-allow io_cancel were
rejected as unknown syscall names because both were missing from the
name-to-number table while already being on the opt-in list; production
mode failed the launch outright (#45).