bwrap-rs: an independent, byte-compatible Rust reimplementation of bubblewrap 0.13.1

未关闭
#830 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
35/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux, rust

调研方向

Read the repository README and the linked bwrap-rs project to assess whether a mention in the “Related project comparison” section fits. The issue asks for feedback and a possible README entry; done means maintainers decide whether to add the mention and, if accepted, update that section.

由索引模型根据 Issue 内容生成。

描述

Hi, and thanks for bubblewrap.

I've written bwrap-rs, an independent reimplementation of bubblewrap 0.13.1
in Rust. It's not a fork and it doesn't vendor any of your code; all design
credit is yours. The goal is a byte-exact, drop-in bwrap: the same
command-line surface, the same behaviour, the same output and exit codes.

Repo: https://github.com/bramheerink/bwrap-rs (LGPL-2.0-or-later, same as bwrap)

How compatibility is checked

I run your test suite, unmodified, against the Rust binary (BWRAP= pointed at
it):

  • tests/test-run.sh — 67/67 pass
  • tests/test-sandbox.py — 69/69 pass

On top of that there's a behavioural matrix that A/Bs every documented option
against the real /usr/bin/bwrap 0.13.1 and requires byte-identical exit code,
stdout and stderr, plus a QEMU e2e for the real-root (uid 0) privilege path that
unprivileged-userns environments can't reach.

Safety architecture

#![forbid(unsafe_code)] in the logic crates; all unsafe is confined to one
small syscall crate. The dependency surface is std + nix. I mention this as a
design fact, not a claim about bubblewrap — your C is the audited reference, and
bwrap-rs is only as trustworthy as that comparison makes it.

Where it deliberately differs

A short, honest list of the handful of intentional deviations (mostly failing
more strictly than C on malformed input) is here:
https://github.com/bramheerink/bwrap-rs/blob/main/DIFFERENCES.md

What I'm (and am not) asking

I'm not asking you to adopt, endorse or maintain it — just sharing it in case
it's useful to the ecosystem. Two small things if you're open to them:

  1. Would a mention in the "Related project comparison" section of the README be
    welcome?
  2. Any feedback on the compatibility approach or anything I've gotten wrong is
    very welcome — I'll treat divergences from 0.13.1 as bugs.

Thanks again for the project.

主要语言
C
星标
9.6k
派生
418
平均合并
4 天 8 小时
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

containers/bubblewrap 的其他 Issue

查看 containers/bubblewrap 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。