Go to file
Kevin Klues c32237f39c Add support for parsing Linux Capabilities for older OCI specs
This was added to fix a regression with support for the default runc
shipped with CentOS 7.

The version of runc that is installed by default on CentOS 7 is
1.0.0-rc2 which uses OCI spec 1.0.0-rc2-dev.

This is a prerelease of the OCI spec, which defines the capabilities
section of a process configuration to be a flat list of capabilities
(e.g. SYS_ADMIN, SYS_PTRACE, SYS_RAWIO, etc.)
https://github.com/opencontainers/runtime-spec/blob/v1.0.0-rc2/config.md#process-configuration

By the time the official 1.0.0 version of the OCI spec came out, the
capabilities section of a process configuration was expanded to include
embedded fields for effective, bounding, inheritable, permitted and
ambient (each of which can contain a flat list of capabilities of the
form SYS_ADMIN, SYS_PTRACE, SYS_RAWIO, etc.)
https://github.com/opencontainers/runtime-spec/blob/v1.0.0/config.md#linux-process

Previously, we only inspected the capabilities section of a process
configuration assuming it was in the format of OCI spec 1.0.0.

This patch makes sure we can parse the capaibilites in either format.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2020-06-03 21:25:13 +00:00
config Add ability to merge envars of the form NVIDIA_VISIBLE_DEVICES_* 2020-05-15 19:04:05 +00:00
docker Update build system to match libnvidia-container 2020-05-14 19:27:57 +00:00
packaging Update changelog for 1.1.1 2020-05-19 14:55:40 +00:00
pkg Add support for parsing Linux Capabilities for older OCI specs 2020-06-03 21:25:13 +00:00
.dockerignore Add binary target and use go mod 2020-04-11 17:18:14 -07:00
.gitignore Init 2019-10-22 14:36:22 -07:00
.gitlab-ci.yml Update .gitlab-ci.yml to match that of libnvidia-container 2020-05-14 21:42:14 +02:00
container_config_test.go Add ability to merge envars of the form NVIDIA_VISIBLE_DEVICES_* 2020-05-15 19:04:05 +00:00
CONTRIBUTING.md Ensure LICENSE and CONTRIBUTING.md files are present 2019-10-31 12:56:46 -07:00
docker.mk Update build system to match libnvidia-container 2020-05-14 19:27:57 +00:00
go.mod Update vendored packages 2020-06-03 21:25:13 +00:00
go.sum Update vendored packages 2020-06-03 21:25:13 +00:00
LICENSE Ensure LICENSE and CONTRIBUTING.md files are present 2019-10-31 12:56:46 -07:00
Makefile Update version to 1.1.1 2020-05-19 14:04:59 +00:00
oci-nvidia-hook Init 2019-10-22 14:36:22 -07:00
oci-nvidia-hook.json Init 2019-10-22 14:36:22 -07:00