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

Ouverte
#830 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
1/5
Temps estimé
Moins d'une heure
Accessibilité débutants
35/100
Type d'issue
Documentation
Clarté
Plutôt claire
Activité
Active
Stack technique
linux, rust

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C
Étoiles
9.6k
Forks
418
Merge moyen
4 j 8 h
PR mergées (30 j)
1

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de containers/bubblewrap

Toutes les issues de containers/bubblewrap

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.