Skip to content

[WIP] Shell that runs every command in a chroot, without access to the parent directory

License

Notifications You must be signed in to change notification settings

aaronjanse/bwrap-shell

 
 

Repository files navigation

Inspiration: Dot Dot Considered Harmful - Fuchsia.

This is an ion shell fork that runs every command in a sandbox containing only the current working directory (along with stuff like /dev, but we'll ignore that for now), along with file paths passed as arguments. So, programs can only operate upon the current working directory.

Note that git, htop, etc all work as expected, for the most part, which is pretty cool.

Note that this does not create secure sandboxes, due to bubblewrap CVE-2017-5226. I also carelessly mount stuff like /lib and /proc.

Dependencies:

  • bubblewrap must be installed as setuid and in the $PATH

Attribute the shell features that work well to the Redox OS contributors. Broken features are likely due to my modifications, which is okay because this repo is just a proof-of-concept.

About

[WIP] Shell that runs every command in a chroot, without access to the parent directory

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 96.8%
  • Shell 2.4%
  • Other 0.8%