Skip to content

v0.5.0

Choose a tag to compare

@0kenx 0kenx released this 19 Nov 07:29
· 56 commits to main since this release
v0.5.0
7a2434c

Changes

Security

  • Enforce the workload cgroup, identity and saved seccomp program for native attach and probe helpers, run timed probes in private sessions, and reap their descendants.
  • Restrict futex operations in the native seccomp filter, denying all priority-inheritance commands, and limit socketpair() to the Unix domain while denying TCP_ULP at the TCP level.
  • Remap root-launched containers to exclusive, atomically claimed host UID and GID blocks instead of the shared fixed range, and strip set-user-ID and set-group-ID bits from workspace copy-in and copy-out.
  • Require authenticated private snapshots for image imports, open mount targets component by component without following image symlinks, and apply recursive bind-mount restrictions before the mount tree becomes visible (Linux 5.12 or later).
  • Deny all bridge traffic by default in every service mode and require successful firewall installation before the workload is released.
  • Apply write/execute checks to mmap, mprotect and opt-in pkey_mprotect, make executable SysV shared-memory attachments read-only, and clear inherited READ_IMPLIES_EXEC.
  • Deny PR_SET_MM options, mknod, pidfd_getfd, open_by_handle_at, kcmp, syslog and clock setters in native policies, and require explicit opt-in for splice, tee and sendfile in every network mode.
  • Preserve legacy terminal ioctls in GPU mode while blocking TIOCSTI and TIOCLINUX on inherited descriptors.
  • Bind only /nix/store from the host Nix installation in native agent mode and enforce the GPU device allowlist with a cgroup-device eBPF program.
  • Check bind sources against sensitive directories, verify the selected rootfs and its store objects against the host Nix database, and mount native procfs with hidepid=2,subset=pid.
  • Enforce configured minimum Landlock ABIs with ABI 6 scoping for host-network workloads, scope abstract Unix sockets and signals, and verify all five capability sets against kernel state.
  • Isolate bridge ports by default, scope masquerade to traffic leaving the bridge, publish ports only on local destinations, and run slirp4netns as mapped root with mandatory sandbox and seccomp filters.
  • Require explicit DNS egress grants, resolve them on the host, reject protected answers, and expire permitted resolvers in the kernel.
  • Sign image content and metadata with Ed25519, support public-key-only verification, and validate OCI hook executables and their ancestors while dropping their capabilities and enforcing no-new-privileges.
  • Pin checkpoint directories for HMAC verification and CRIU execution, enforce supervisor ownership, and scope seccomp trace records by audit PID, descendants, cgroup and PID namespace.
  • Route state directories through the trusted-directory gate, rejecting foreign-owned roots even for host root.
  • Resolve /proc/self and descriptor links again by removing the mount-wide nosymfollow flag while keeping execution blocked at the execveat, Landlock and mount-noexec decision points, and fail closed unless every workload proc mount carries nosuid,nodev,noexec.
  • Mount /tmp as a dedicated noexec,nosuid,nodev tmpfs reserved against volume overrides.
  • Allowlist setsockopt levels with per-level carve-outs denying TCP_ULP and UDP_ENCAP, and deny MSG_OOB on message sends and receives.

Added

  • Per-topology bridge networks with distinct names and configured subnets.
  • Ed25519 image signing with cross-host verification instructions.
  • NixOS environmentFile support for passing private runtime configuration to supervisors.

Changed

  • Require Rust 1.100 and refresh the Cargo and Nix dependency graphs.
  • Run gVisor bridge networking on the sandbox network stack, pin runsc 20261116.0 in the flake, and reject unversioned builds or releases older than 20260831.0.
  • Require nftables and net.ipv4.ip_forward=1 for the kernel bridge backend; unmarked bridges from earlier versions require migration, and DNS egress now requires --egress-dns with --dns.
  • Default NixOS supervisors to per-unit dynamic users with bounded capabilities, syscall and namespace restrictions; remove the unrestricted extraArgs option.
  • Reject automatically root-remapped containers and legacy namespaces with unknown mappings in CRIU checkpoint and restore; recreate existing root-remapped containers to receive fresh exclusive ID mappings and preserve the reservation registry across upgrades.

Fixed

  • Deny FICLONE/FICLONERANGE ioctl probes with EOPNOTSUPP so coreutils cp falls back to a read/write copy instead of dying with SIGSYS on current distributions.
  • Fall back to a staging file when the kernel rejects memfd resolv.conf binds, and keep the staged file readable by non-root workloads.
  • Remove deleted workspace directories through the pinned descriptor rather than the procfs link.
  • Recover from kernel log overruns without discarding seccomp trace records.

Full changelog: v0.4.0...v0.5.0