Skip to content

PowerUser64/basic-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NO AI HERE - this repo is 100% human-certified AI-free

Basic Sandbox 🏖️

This is a somewhat-specialized sandbox for running things you don't trust. It's built around bubblewrap.

⚙️ BS features

  • 🕵 Opens your current working directory at /project/<CWD NAME>. This is to anonymize any information it might hold.
  • 🕵 Makes a "virtual" username and home folder (see: --user flag).
  • 🕵 Makes a "virtual" hostname (see --hostname flag).
  • 🛠️ Forwards /usr and /opt to passthrough software. This is to make bs low friction to use.

✍️ Usage

# Run opencode with readonly access to ~/.bashrc and ~/code/mylib, but NO OTHER USER FILES
bs -f ~/.bashrc -f ~/code/mylib -- opencode

👥 Profiles

To make profiles:

  1. Experiment to find a bs command that you find useful
  2. Copy bsp-template and name it what you want (eg. bspgcc) and fill in TODO's (or, make your own)
  3. Replace the bs command in the script with your bs command
  4. Make sure the template is chmod +x'd and in your PATH

🏗️ Install

  1. Install bubblewrap (bwrap) and fish (fish) from your package manager
  2. Clone the repository bs into your environment
  3. Add bs to your PATH (something like sudo ln -s "$(realpath -e bs)" /usr/bin/bs)
  4. chmod +x
  5. Run bs. You should be dropped into a shell.

About

a Basic Sandbox for running anything that might try to pull some kind of nonsense

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages