sandbox

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2019 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Overview

Package sandbox handles launching applications in a sandboxed enviornment via bubblwrap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGrsecKernel

func IsGrsecKernel() bool

IsGrsecKernel returns true if the system appears to be running a grsec kernel.

func RunTor

func RunTor(cfg *config.Config, manif *config.Manifest, torrc []byte) (process *Process, err error)

RunTor launches sandboxeed Tor.

func RunTorBrowser

func RunTorBrowser(cfg *config.Config, manif *config.Manifest, tor *tor.Tor) (process *Process, err error)

RunTorBrowser launches sandboxed Tor Browser.

func RunUpdate

func RunUpdate(cfg *config.Config, mar []byte) (err error)

RunUpdate launches sandboxed Tor Browser update.

func SetSensibleRlimits

func SetSensibleRlimits() error

SetSensibleRlimits conservatively lowers the rlimits to values that will happily support firefox, the updater, tor, and obfs4proxy.

XXX; In the future, this should be applied to each process individually. I still need to think about what I'll do for the things that are unset, because it should be tied into the UI.

Types

This section is empty.

Directories

Path Synopsis
Package process contains a wrapper around a running bwrap instance, and is in a separate package just to break an import loop.
Package process contains a wrapper around a running bwrap instance, and is in a separate package just to break an import loop.
Package x11 contains the X11 sandbox surrogate and other X11 related sandboxing routines.
Package x11 contains the X11 sandbox surrogate and other X11 related sandboxing routines.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL