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

オープン
#830 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

containers/bubblewrap のほかの issue

containers/bubblewrap の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。