backend.ai-jail

A programmable security sandbox for Backend.AI kernels

Github星跟踪图

Backend.ai-jail

A dynamic sandbox for Backend.Ai kernels.

Testing and Debugging

  • Requirements: Docker, make

As we provide all docker configurations to run this code with valid GOPATH,
you don't have to place the cloned working copy somewhere special.

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

Inside the container, you can use go get, go build, and so on seamlessly.

To test the jail, run ./backend.ai-jail <policy-name> <command-args>.
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 manylinux for glibc-based binaries (for Ubuntu/Debian Linux) and
make musllinux for musl-based binaries (for Alpine Linux).

On the target systems or images, you need to install libseccomp 2.2 or higher
to use Sorna jail.

概览

名称与所有者lablup/backend.ai-jail
主编程语言Rust
编程语言Makefile (语言数: 4)
平台
许可证GNU Lesser General Public License v3.0
发布数1
最新版本名称0.1.0 (发布于 2023-08-29 06:03:34)
第一版名称0.1.0 (发布于 2023-08-29 06:03:34)
创建于2017-03-28 05:40:55
推送于2023-11-06 07:48:09
最后一次提交
星数7
关注者数15
派生数2
提交数64
已启用问题?
问题数13
打开的问题数8
拉请求数10
打开的拉请求数2
关闭的拉请求数12
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部