Module: Bwrap

Defined in:
lib/bwrap/bwrap_module.rb,
lib/bwrap/version.rb

Overview

ruby-bwrap provides easy-to-use interface to run complex programs in sandboxes created with bubblewrap.

To run a program inside bubblewrap, a wrapper executable can be created. For example:

require "bwrap"

config = Bwrap::Config.new
config.user = "dummy_user"
config.full_system_mounts = true
config.binaries_from = %w{
  /bin
  /usr/bin
}

bwrap = Bwrap::Bwrap.new config
bwrap.parse_command_line_arguments
bwrap.run "/bin/true"

There also are few generic utilities, Output for handling output of scripts and Execution to run executables.

Defined Under Namespace

Modules: Args, Execution, Output, Resolvers Classes: Bwrap, Config

Constant Summary collapse

VERSION =

Current version of bwrap.

"1.3.1"