v3.6.0
Named configuration profiles, per-run observability (--run-summary,
--teardown-report, exit-reason diagnostics), configurable Linux per-process
resource limits (--rlimit) and CPU affinity (--cpus), plus a Linux Landlock
fix for eCryptfs-backed directories.
Backward compatible: all new controls are opt-in, existing launches and saved
policies keep their prior behavior, and monotonic project-policy rules are
preserved.
Added
-
Named configuration profiles (
[profiles.NAME]/--profile NAME, #230,
PR #250). Define reusable profile tables in the trusted global config and
select one per launch with--profile. Effective widenings relative to the
baseline (including credential bindings, mounts, limits, and CPUs) are
reported visibly and recorded in the launch audit entry. Thanks @lucascouts. -
Per-run observability: exit-reason diagnostics (#242, PR #247), in-sandbox
teardown reporting (--teardown-report, #249, PR #251), and private run
summaries (--run-summary <PATH>, #228, PR #252).- Runs that end due to a signal or resource limit print a concise stderr
diagnostic distinguishing observed causes from inferred signals. --teardown-report(Linux) reaps background processes that outlive the
jailed command inside the private PID namespace, verifies signal targets,
and reports survivors through an isolated close-on-exec pipe.--run-summary <PATH>writes a single versioned, mode-0600JSON report
combining exit status, teardown survivors, child resource usage, run ID,
and filtered-egress counts without affecting the command's exit code.
Thanks @lucascouts.
- Runs that end due to a signal or resource limit print a concise stderr
-
Configurable Linux per-process resource limits (
--rlimit NAME=VALUE,
#229, PR #253). Adjust per-process limits (nofile,nproc,core,
cpu,as,fsize, etc.) on the CLI or in config. Limits are validated
before status, onboarding saves, and launch; project constraints can only
tighten limits; host supervisor limits stay independent from child command
limits; and explicit limits are shown in effective-access review, dry run,
and the launch audit log. Thanks @lucascouts. -
Linux CPU affinity (
--cpus LIST, #229, PR #254). Pin jailed commands
to an explicit CPU set without root or systemd, enforced inside the sandbox
with seccomp blocking affinity changes. Project policies may only narrow the
CPU set, and CPUs added by a named profile are reported in the widening
summary. Thanks @lucascouts. -
Linux ARM64 release archives and tested global config example. Release
CI now builds and attestsaarch64-unknown-linux-gnuarchives alongside
x86-64 and macOS, anddocs/config.example.tomlprovides a tested reference
global configuration.
Fixed
-
Landlock
readdiron eCryptfs-backed directories (#243, PR #255).
eCryptfs opens the underlying lower directory under the caller's credentials
duringreaddir(ecryptfs_dir_open), which Landlock denied withEACCES
because the lower tree is not mounted inside the sandbox. On Linux,ai-jail
now detectsecryptfsmounts in/proc/self/mountinfo(including
filename-encryptedecryptfs_fnek_sigmounts), opens the matching lower
directory withO_PATH | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC, grants
AccessFs::ReadDironly in the Landlock ruleset, and closes all lower
descriptors before seccomp andexecwhile keeping the lower directory
unmounted from the sandbox. Thanks @Covre81 for tracing the root cause. -
macOS Codex startup services stay independent of agent state. Keep
required Codex startup services reachable without coupling them to optional
agent-state mounts.
See the security model for what each grant exposes.
Checksums (SHA256)
6dc078fe04872f81cfa70b0df76cfa6e151a193ec2b16f94240e669aadd2ec0f ai-jail-linux-aarch64.tar.gz
cdc841f990078dfe8a9b044acbc1c99d32c679cd9a149bab4754bbb2a11707d1 ai-jail-linux-x86_64.tar.gz
f15ce95e1dc4f39b9f93883a14adcf839e72aca67e7092ca62cc4be5c6bf8cd9 ai-jail-macos-aarch64.tar.gz
4c9eca849d95c80e6bc1e69d7eadef3ae7054e7d0ad580bfc1780d2c59ae841e ai-jail_3.6.0_amd64.deb
Install
brew tap akitaonrails/tap && brew install ai-jail
yay -S ai-jail-bin
cargo install --locked ai-jail
# Debian/Ubuntu: download the .deb below, then
sudo apt install ./ai-jail_*_amd64.deb