An open API service indexing awesome lists of open source software.

https://github.com/lablup/backend.ai-jail

A programmable security sandbox for Backend.AI kernels
https://github.com/lablup/backend.ai-jail

backendai jail sandboxing

Last synced: 2 months ago
JSON representation

A programmable security sandbox for Backend.AI kernels

Awesome Lists containing this project

README

          

# Backend.AI Jail

A dynamic sandbox for Backend.AI kernels.

## Testing and Debugging

* Requirements: Docker, make

Just run `make prepare-dev` to build and create a development container based
on Ubuntu. Afterwards, you can `docker start jail-dev` and `docker
attach jail-dev` to access its shell.

Inside the container, run `cargo build`. This will build our backend.ai-jail.

To test the jail, run `target/debug/backendai-jail [--policy ] `.
Note that this jail binary cannot be executed outside the container even though
it exists inside the working copy, if you use different OS/architectures for
the host (e.g., macOS).

To debug, add `--debug` flag to the command-line arguments.

## Building Release Binaries

Run `make ubuntu` for glibc-based binaries (for Ubuntu/Debian Linux) and
`make alpine3.8` for musl-based binaries (for Alpine Linux). Check Makefile for more informations.

On the target systems or images, you need to install libseccomp 2.2 or higher
to use Backend.AI Jail.