Skip to content

Prepare mount points for new RootFS packages - #4

Draft
Ruraam wants to merge 4 commits into
mainfrom
fix/rootfs-mount-layout
Draft

Ruraam wants to merge 4 commits into
mainfrom
fix/rootfs-mount-layout

Conversation

@Ruraam

@Ruraam Ruraam commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Prepare standard mount targets before sealing a RootFS, detect raw RootFS trees after extraction, and bind the root before the child mounts in Bubblewrap. The CLI now passes the application arguments after the package path without injecting an extra --.

The local suite passed all 35 tests. On a Debian 13.8 amd64 VM, an unprivileged user packed and signed a Debian trixie-slim RootFS with /proc, /sys, and /dev omitted from the input. Running the LPK with --offline produced a fuse.squashfuse root mounted ro. The payload accessed /proc, /sys, and /dev, could write under /tmp, and received EROFS under /etc. Its network namespace differed from the host and contained only loopback.

To repeat the VM check as a regular user on a FUSE-capable Debian host, run bash tests/rootfs-fuse-offline.sh /path/to/debian-rootfs.tar.gz with a trusted native Debian slim rootfs archive.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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