Go to file
Nicolas Lacasse 2df64cd6d2 createAt should return all errors from FindInode except ENOENT.
Previously, createAt was eating all errors from FindInode except for EACCES and
proceeding with the creation. This is incorrect, as FindInode can return many
other errors (like ENAMETOOLONG) that should stop creation.

This CL changes createAt to return all errors encountered except for ENOENT,
which we can ignore because we are about to create the thing.

PiperOrigin-RevId: 245773222
Change-Id: I1b317021de70f0550fb865506f6d8147d4aebc56
2019-04-29 10:30:24 -07:00
.github Update README.md to point to gvisor.dev 2019-04-09 10:20:21 -07:00
g3doc Update README.md to point to gvisor.dev 2019-04-09 10:20:21 -07:00
kokoro Fix gvisor-containerd-shim download in the test. 2019-04-15 13:56:52 -07:00
pkg createAt should return all errors from FindInode except ENOENT. 2019-04-29 10:30:24 -07:00
runsc Make raw sockets a toggleable feature disabled by default. 2019-04-26 16:51:46 -07:00
test createAt should return all errors from FindInode except ENOENT. 2019-04-29 10:30:24 -07:00
third_party/gvsync Move package sync to third_party 2019-01-31 17:49:14 -08:00
tools Make it easier for humans to use RBE, and maintain our bazelrc. 2019-04-05 15:48:32 -07:00
vdso Enable vDSO support on arm64. 2019-04-18 16:22:08 -07:00
.bazelrc Make it easier for humans to use RBE, and maintain our bazelrc. 2019-04-05 15:48:32 -07:00
.gitignore Add .gitignore 2018-05-01 09:37:49 -04:00
BUILD BUILD: Add useful go_path target 2019-04-04 17:05:38 -07:00
CODE_OF_CONDUCT.md Adds Code of Conduct 2018-12-14 18:13:52 -08:00
CONTRIBUTING.md CONTRIBUTING: add style guide pointer 2019-04-11 14:18:01 -07:00
LICENSE Check in gVisor. 2018-04-28 01:44:26 -04:00
README.md Update required bazel version to 0.23.0 in README 2019-04-25 01:16:33 -07:00
WORKSPACE Remove syscall tests' dependency on glog 2019-04-26 12:47:46 -07:00

README.md

gVisor

What is gVisor?

gVisor is a user-space kernel, written in Go, that implements a substantial portion of the Linux system surface. It includes an Open Container Initiative (OCI) runtime called runsc that provides an isolation boundary between the application and the host kernel. The runsc runtime integrates with Docker and Kubernetes, making it simple to run sandboxed containers.

Why does gVisor exist?

Containers are not a sandbox. While containers have revolutionized how we develop, package, and deploy applications, running untrusted or potentially malicious code without additional isolation is not a good idea. The efficiency and performance gains from using a single, shared kernel also mean that container escape is possible with a single vulnerability.

gVisor is a user-space kernel for containers. It limits the host kernel surface accessible to the application while still giving the application access to all the features it expects. Unlike most kernels, gVisor does not assume or require a fixed set of physical resources; instead, it leverages existing host kernel functionality and runs as a normal user-space process. In other words, gVisor implements Linux by way of Linux.

gVisor should not be confused with technologies and tools to harden containers against external threats, provide additional integrity checks, or limit the scope of access for a service. One should always be careful about what data is made available to a container.

Documentation

User documentation and technical architecture, including quick start guides, can be found at gvisor.dev.

Installing from source

Status

gVisor currently requires x86_64 Linux to build, though support for other architectures may become available in the future.

Requirements

Make sure the following dependencies are installed:

Getting the source

Clone the repository:

git clone https://gvisor.googlesource.com/gvisor gvisor
cd gvisor

Building

Build and install the runsc binary:

bazel build runsc
sudo cp ./bazel-bin/runsc/linux_amd64_pure_stripped/runsc /usr/local/bin

Testing

The test suite can be run with Bazel:

bazel test ...

Using remote execution

If you have a Remote Build Execution environment, you can use it to speed up build and test cycles.

You must authenticate with the project first:

gcloud auth application-default login --no-launch-browser

Then invoke bazel with the following flags:

--config=remote
--project_id=$PROJECT
--remote_instance_name=projects/$PROJECT/instances/default_instance

You can also add those flags to your local ~/.bazelrc to avoid needing to specify them each time on the command line.

Community & Governance

The governance model is documented in our community repository.

The gvisor-users mailing list and gvisor-dev mailing list are good starting points for questions and discussion.

Security

Sensitive security-related questions, comments and disclosures can be sent to the gvisor-security mailing list. The full security disclosure policy is defined in the community repository.

Contributing

See Contributing.md.