Skip to content

feat: allow-list jailed VFIO devices - #1

Merged
aaqaishtyaq merged 1 commit into
mainfrom
codex/vfio-device-allowlist
Jul 17, 2026
Merged

feat: allow-list jailed VFIO devices#1
aaqaishtyaq merged 1 commit into
mainfrom
codex/vfio-device-allowlist

Conversation

@aaqaishtyaq

Copy link
Copy Markdown
Member

What changed

  • extend the strict v1 manifest with an optional VFIO-only device allow-list
  • accept only /dev/vfio/vfio and canonical numeric IOMMU-group nodes
  • resolve real character-device identities before pivot and recreate only those nodes inside the jail
  • reject aliases, remapping, duplicate nodes, and mounts over the reserved dev/ tree
  • document the device boundary and hardware-runner coverage
  • bump the binary package version to v0.1.10

Why

Machined now allocates complete IOMMU groups exclusively. Cloud Hypervisor needs those allocator-derived devices inside its dedicated jail without exposing the host device tree or changing Firecracker jailer behavior.

Validation

  • cargo fmt --check
  • cargo test --locked (13 Linux amd64 tests)
  • strict Linux amd64 Clippy
  • optimized Linux amd64 release build
  • x86_64 Linux musl all-target check

Extend the strict v1 manifest with an optional VFIO-only device list.
Accept only the control node and canonical numeric IOMMU-group paths,
require exact in-jail destinations, and reject duplicates, aliases, and
mounts that overlap the reserved device tree.

Resolve each selected host node as a real character device before the
pivot, then recreate its major/minor identity inside the private jail.
This avoids bind-mounting host /dev or changing host device ownership.
CPU-only manifests remain compatible because the new list defaults empty.

Document the boundary and dedicated hardware-runner coverage, and bump
the binary package version to 0.1.10. Linux amd64 container tests pass
with 13 unit tests, strict Clippy, and an optimized release build.

Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@aaqaishtyaq
aaqaishtyaq merged commit 80dea15 into main Jul 17, 2026
2 checks passed
@aaqaishtyaq
aaqaishtyaq deleted the codex/vfio-device-allowlist branch July 17, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant