Skip to content
forked from proot-me/proot

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux

License

Notifications You must be signed in to change notification settings

chaoqing/proot-go

 
 

Repository files navigation

PRoot-go

PRoot-go has a go command wrapper on original C version of proot to provide smart interface. Thanks to [viper](https://github.com/spf13/viper) Proot-go have the ability to read pre-defined arguments from environment, command-line args and YAML configuration file(see proot.yaml.example for example).

PRoot-go also support busybox like functionality. Rename or symbolic link proot-go to the command you prefer(like ln -s proot-go bash && ./bash), Proot-go will search configuration file .proot.yaml automatically and execute the command inside proot guest context. This functionality is very useful when one want to run docker like command.

Try ./proot-go --go-verbose --go-help to see help information.

PRoot

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux

Build status

https://img.shields.io/gitlab/pipeline/proot/proot.svg?label=gitlab-ci&style=flat-square https://img.shields.io/travis/proot-me/proot.svg?label=travis-ci&style=flat-square https://img.shields.io/badge/scan--build-latest-yellow.svg?style=flat-square https://img.shields.io/badge/lcov-latest-6688D4.svg?style=flat-square https://img.shields.io/cii/summary/2444.svg?label=cii-best-practices&style=flat-square https://img.shields.io/badge/DOI-10.5281%2Fzenodo.3751971-blue?style=flat-square

Compiling

The following commands can be used to compile PRoot and CARE:

make -C src loader.elf loader-m32.elf build.h # first build the config and loader
make -C src proot care # then compile PRoot and CARE
make -C test # run test suite

asciicast

Dependencies

For Ubuntu, one may install the dependencies with command sudo apt install libarchive-dev libtalloc-dev uthash-dev.

Manuals

Support

License

SPDX-License-Identifier: GPL-2.0-or-later

About

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 86.3%
  • Shell 8.0%
  • Go 2.4%
  • Makefile 2.3%
  • Python 0.4%
  • SWIG 0.3%
  • Other 0.3%