Skip to content
Container Runtime Sandbox
Go C++ Python Assembly Shell C
Branch: master
Clone or download
ghanan94 and gvisor-bot Validate the checksum for incoming ICMPv6 packets
This change validates the ICMPv6 checksum field before further processing an
ICMPv6 packet.

Tests: Unittests to make sure that only ICMPv6 packets with a valid checksum
are accepted/processed. Existing tests using checker.ICMPv6 now also check the
ICMPv6 checksum field.
PiperOrigin-RevId: 276779148
Latest commit 5a42105 Oct 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update CONTRIBUTING.md May 30, 2019
g3doc Merge pull request #306 from amscanne:add_readme Jun 14, 2019
kokoro netstack/tcp: software segmentation offload Oct 22, 2019
pkg Validate the checksum for incoming ICMPv6 packets Oct 25, 2019
runsc Fix early deletion of rootDir Oct 24, 2019
scripts netstack/tcp: software segmentation offload Oct 22, 2019
test test/syscall: Remove duplicated gtest/gtest.h. Oct 25, 2019
third_party/gvsync Reorder BUILD license and load functions in gvisor. Oct 16, 2019
tools Reorder BUILD license and load functions in gvisor. Oct 16, 2019
vdso Merge pull request #450 from Pixep:feature/add-clock-boottime-as-mono… Jul 19, 2019
.bazelrc Fix `runsc --version` and add a test. Sep 10, 2019
.gitignore Add .gitignore May 1, 2018
AUTHORS Change copyright notice to "The gVisor Authors" Apr 29, 2019
BUILD Add additional dependencies to :gopath tree. Oct 8, 2019
CODE_OF_CONDUCT.md Adds Code of Conduct Dec 15, 2018
CONTRIBUTING.md Bring back to life features lost in recent refactor Sep 16, 2019
Dockerfile gvisor/bazel: use python2 to build runsc-debian Jun 18, 2019
LICENSE Check in gVisor. Apr 28, 2018
Makefile Allow non-unique group IDs in bazel docker containers Sep 5, 2019
README.md Add SECURITY.md. Oct 7, 2019
SECURITY.md Add SECURITY.md. Oct 7, 2019
WORKSPACE Bump rules_go to v0.20.1 and go toolchain to v1.13.3. Oct 21, 2019
go.mod Update canonical repository. Jun 13, 2019
go.sum Update canonical repository. Jun 13, 2019

README.md

gVisor

Status gVisor chat

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

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:

Building

Build and install the runsc binary:

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

If you don't want to install bazel on your system, you can build runsc in a Docker container:

make 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 //...

or in a Docker container:

make unit-tests
make tests

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.

Using go get

This project uses bazel to build and manage dependencies. A synthetic go branch is maintained that is compatible with standard go tooling for convenience.

For example, to build runsc directly from this branch:

echo "module runsc" > go.mod
GO111MODULE=on go get gvisor.dev/gvisor/runsc@go
CGO_ENABLED=0 GO111MODULE=on go install gvisor.dev/gvisor/runsc

Note that this branch is supported in a best effort capacity, and direct development on this branch is not supported. Development should occur on the master branch, which is then reflected into the go branch.

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 Policy

See SECURITY.md.

Contributing

See Contributing.md.

You can’t perform that action at this time.