﻿# Linux personal-CLI verification — December 3, 2026

[中文](../../zh-CN/reference/linux-verification-2026-12-03.md) · [Evidence index](verification.md) · [Self-check guide](../protection/verify.md)

Linux personal-CLI `run` was measured in privileged Docker Desktop on a Mac, not on a native Linux server with Landlock. Bind-mount file writes outside the workspace were denied. Reads of an undeclared directory and of a custom synthetic credential file **succeeded**. `self-confine` fail-closed because Landlock was only partially enforced. No authenticated Linux Agent CLI was present. A defined 1 MiB startup/file workload was measured on this guest. These numbers include linux/amd64 emulation on Apple Silicon and must not be quoted as native x86_64 overhead.

A Lima Ubuntu 24.04 aarch64 VM (`finsafe-ll`) was started to obtain a real kernel; its cloud image download did not finish in this session. Docker Desktop linuxkit therefore remains the executed Linux environment. It does not replace a Landlock-capable host for path-mode claims.

## Environment and artifacts

Tests ran on December 3, 2026. The outer host was macOS 26.6.1 arm64. The guest was recorded at 10:00 UTC.

| Item | Record |
| --- | --- |
| Runtime | Docker Desktop 29.7.2, privileged, `--cgroupns private`, `--security-opt seccomp=unconfined`, `--platform linux/amd64` |
| Guest | Ubuntu 24.04.5 LTS, kernel **7.0.12-linuxkit**, linux/amd64 userspace (emulated on Apple Silicon) |
| Public package | [v0.11.85](https://github.com/finogeeks/finsafe/releases/tag/v0.11.85) `finshield-0.11.85-linux-x64.tar.zst`; SHA-256 `496aa373a251e2114cccc268293e5b0c1990e9143967379f2311a41344d9f90e` |
| Executable | `finsafe 0.11.48` with `finsafe-helper`, `finsafe-supervisor`, `finsafe-landlock-shim` from the same archive |
| `probe` initial | bubblewrap 0.9.0 ready; helper/supervisor present; `cgroup_functional: false`; `landlock` unavailable; `seccomp_functional: false`; `overlay_functional: false`; `in_container: yes` |
| `doctor` initial | 0 error, 3 warn (`helper_overlay_probe_failed`, `helper_cgroup_probe_failed`, `landlock_unavailable`) |
| After documented cgroup delegation | `cgroup_functional: true`. Landlock and seccomp remained unavailable. No Landlock shim was planted to fake path mode |
| Profile | `linux-desktop-isolated` / backend bubblewrap; landlock `fully_enforced: false` |

Initial defaults were recorded before cgroup delegation. Enabling `+cpu +memory +pids` on the delegated slice is a documented prerequisite, not an enforcement bypass. User configuration on the Mac was not changed.

No Linux Codex, Hermes, Claude, OpenCode or agy binary was installed in the guest. The Mac Codex 0.152.0 binary is Mach-O and cannot run there. Advertised `finsafe codex` in the guest fail-closed: `landlock policy was only partially enforced`.

## File, network and process checks

Fixtures were a writable workspace, a declared read-only directory, an undeclared denied directory, a custom synthetic credential file and an owned loopback receiver on `127.0.0.1:18767`. Host-side original contents were saved before execution.

| Operation | Observed `run` result | Independent check |
| --- | --- | --- |
| Workspace write/read | Completed; `changed` | File contained `changed` |
| Read-only read | Completed; returned `FINSHIELD113-LRO-ok` | Copy into the workspace matched the original |
| Read-only overwrite | `Read-only file system`; inner 2 | Original bytes unchanged |
| Read-only delete | `Read-only file system` | File present |
| Read undeclared denied fixture | **Read succeeded** (`FINSHIELD113-LDENY-ok`) | Do not treat this as a deny pass |
| Write outside workspace | `Read-only file system`; inner 2 | Escape file absent |
| Read custom synthetic credential | **Read succeeded** (`SYNTHETIC-NOT-A-REAL-KEY`) | Contrast: macOS Seatbelt denied the same kind of path |
| Host-network POST to owned receiver | `owned-receiver-ok` | Receiver stored `FINSHIELD113-LNET-OK` |
| `network: none` to loopback | curl **7** | No new receiver line |
| `network: none` to `example.com` | curl **6** (DNS) | Not a destination-allowlist test |
| `timeout_ms: 1500` with `sleep 5` | `termination_reason=timeout_killed timed_out=true` | After cgroup delegation |
| `self-confine` | Exit fail-closed: `landlock policy was only partially enforced` | No broker command ran |
| `explain` on a deny envelope | `No classified sandbox denials found in the attestation` | Same classification gap as other platforms |

Landlock ABI reports included `"fully_enforced":false`. Bind-mount views blocked undeclared **writes**. They did not block undeclared **reads** on this kernel. That is a product/host limit, not a pass.

## PII and Agent request path

Local `pii detect` matched `11010519491231002X` as `cn.resident_id`. `privacy verify --file` returned `protected=true`, `action=rewrite`, `sample_forwarded_unchanged=false`, with `tier1_only` / `detector_assets_not_installed`. No Agent request path ran. Host-network `run` is not a PII recipe.

## Defined local performance workload

The workload ran `sha256sum` on the same 1 MiB repeating-byte file and captured the digest. Ordinary and protected `run` used the same guest, archive and input. Timing used Python `perf_counter` around process creation through exit, one warm-up each, then ten alternating measured pairs. All measured digests matched.

| Condition | Measured repetitions | Median | Minimum–maximum |
| --- | ---: | ---: | ---: |
| Ordinary `sha256sum` | 10 | 0.017904 s | 0.016214–0.019620 s |
| FinShield 0.11.48 `run` | 10 | 0.343637 s | 0.323298–0.375924 s |

These times include Docker linux/amd64 on Apple Silicon. They measure only this workload. They do not establish native Linux server overhead, model latency or a cross-platform ranking.

## Same-day follow-up on the public linux-x64 archive

Later on December 3, 2026, the same public v0.11.85 linux-x64 archive (`finsafe 0.11.48`) was re-run in privileged Docker Desktop on kernel 7.0.12-linuxkit, still `--platform linux/amd64`. These rows correct operational probes. They do not add Landlock to this guest.

| Operation | Observed result | Independent check |
| --- | --- | --- |
| Overlay helper on Docker overlay2 | Initial `overlay_functional: no` | Nested overlay on overlay2 failed |
| Overlay helper with `TMPDIR` on tmpfs | `overlay_functional: yes`; helper reported overlay mounted | Scratch directory was a tmpfs, not overlay2 |
| Built-in deny-read of `~/.ssh/id_rsa` when the file was missing | Path omitted from the deny-read layer | Creating the synthetic file first made the later deny check valid |
| Built-in deny-read of existing `~/.ssh/id_rsa` | Read denied (`Permission denied`) | Synthetic marker absent from stdout |
| Undeclared custom credential **inside** the work directory | Read succeeded | This path is inside the declared work tree; it is not an outside-workspace deny |
| SIGTERM to the `run` wrapper with `network: host` | Child remained running | Matches `--die-with-parent` not being forced on host network |
| SIGTERM to the `run` wrapper with `network: none` | Wrapper and child both exited | `network: none` uses `--unshare-net` and `--die-with-parent` |
| `self-confine` / Landlock / `seccomp_functional` | Still fail-closed or `probe` no | Mounting `securityfs` did not make the **amd64** public binary report Landlock |

`apt-get` and the Claude Linux installer hung under qemu-user on this amd64 guest and were stopped. That is not an Agent pass or fail.

## Same-day follow-up on native aarch64 Docker (separate binary)

The public linux-x64 package is x86_64. On the same linuxkit kernel, a **native aarch64** privileged container (`finsafe-unix-linux-test:dev`, Ubuntu 24.04, `seccomp=unconfined`, `cgroupns=private`) was used next. After `mount -t securityfs securityfs /sys/kernel/security`, `/sys/kernel/security/lsm` included `landlock`. `landlock_create_ruleset` with `LANDLOCK_CREATE_RULESET_VERSION` returned ABI **8**.

The CLI in this container was the unix-workspace debug binary **`finsafe 0.9.105`**, plus matching helper, supervisor and landlock-shim. **It is not the public 0.11.48 linux-x64 archive.** Do not copy these Landlock rows onto the public x64 package.

| Operation | Observed result | Independent check |
| --- | --- | --- |
| `probe` | `landlock: yes (ABI v8)`; `overlay_functional: yes`; `cgroup_functional: yes`; `seccomp_functional: no` | Overlay used tmpfs scratch; cgroup slice was delegated |
| Workspace write; outside-workspace write | Write allowed; outside write denied | Marker file present / absent |
| Built-in `~/.ssh/id_rsa` deny-read | Denied | Synthetic marker absent |
| Undeclared custom credential **inside** the work directory | Read succeeded | Fixture error: the file lived under the work dir |
| Undeclared custom credential **outside** the work directory | Read denied; landlock shim `fully_enforced: true` | Synthetic marker absent |
| `network: none` | curl 6 or 7 | No fetched body |
| `self-confine -- /bin/echo probe` | Printed `probe` | Broker exec completed |
| `self-confine` read of `~/.ssh/id_rsa` | Denied | Synthetic marker absent |
| `self-confine` write outside the workspace | Denied; file absent | Host checked the path |
| Codex CLI `--version` under `run` | Printed `codex-cli 0.173.0` | Guest npm install; not the Mac binary |
| Claude Code `--version` under `run` | Printed `2.1.335 (Claude Code)` | Guest installer; not complete-Agent |
| Hermes CLI | Not launched | Upstream has no `v0.21.0` tag; guest lacked `python3-venv` |
| Codex / Claude / Hermes oneshot LLM | No marker | Guest had no Agent login. Claude also hit `EROFS` on `/tmp` until `/tmp` was writable in policy |

`seccomp_functional` stayed no on linuxkit even with ABI 8 Landlock. This container is still Docker Desktop, not a native Linux server.

## Configuration activation

A later trial on the **public 0.11.48 linux-x64** guest, archive and executable measured when a saved wrapper YAML change takes effect. The editing entry was the file passed to `finsafe --policy`. `prepare` is Windows-only. Helpers `finsafe-helper`, `finsafe-supervisor` and `finsafe-landlock-shim` were kept beside the binary. After documented cgroup delegation, `cgroup_functional` was true. Landlock stayed unavailable. `fully_enforced` stayed `false`. `fallback_used=false`. This activation sequence used no Agent CLI.

| Step | Observation |
| --- | --- |
| Writable target via `run` | Source read, workspace write and target write completed (inner 0). Digest `c905699d83f545078147652c7b8e4b4a7e028d391b25ee054e57d5b5f7031478`. Profile `linux-desktop-isolated` |
| Save the same file, keep the old `run` | Changing only the target path to `read_only_paths` did not stop the already running process from writing (inner 0) |
| New `run` of that file | Digest `703495d0cc95240016df171f488bd9f87392daed8f57e3a90791b34d227deb6e`. Target read succeeded. Target write failed with `Read-only file system` (inner 2); original marker SHA-256 unchanged. Workspace write succeeded |
| Undeclared existing fixture | **Read succeeded** (`FINSHIELD102-DENY-ok`, inner 0). Do not treat this as a deny-read pass |
| Isolated invalid YAML | Wrapper exit 2, `YAML syntax error: did not find expected ',' or ']'`. No child file. Relaunching the last valid policy recovered |
| `self-confine` | Each launch fail-closed: wrapper exit 3, `landlock policy was only partially enforced`. No broker command ran |

Canonical reader steps: [configuration activation](../protection/configuration.md#personal-cli-on-macos-and-linux). On this public x64 guest, Landlock/seccomp stayed unavailable and `self-confine` fail-closed. Native aarch64 **0.9.105** Landlock ABI 8 is recorded separately and is not this package.

## Evidence and cleanup

Sanitized classifications, errors and method are public here. Raw guest logs remain local. Follow-up containers used `docker run --rm`. No credential, home path or private tracker link is published. The public linux-x64 archive still has no Landlock on amd64 linuxkit. Native aarch64 Landlock rows apply only to the named **0.9.105** unix CLI. Complete Linux Agent LLM tasks remain unexecuted.
