Commit Graph

17 Commits

Author SHA1 Message Date
Matthew Heon 508743563d Add Architecture field to Seccomp configuration in Linux runtime
By default, Seccomp filters will only permit syscalls to be made using the
native architecture of the kernel. This is fine for most use cases, but breaks
others (such as running 32-bit code in a container on a host with a 64-bit
kernel). This patch adds a field to specify additional architectures which may
make syscalls.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2015-09-23 14:27:23 -04:00
Antonio Murdaca 6b5a66f7e1 Change HugepageLimit.Limit type to uint64
Signed-off-by: Antonio Murdaca <runcom@linux.com>
2015-09-18 00:48:11 +02:00
Antonio Murdaca e9d3ac025d runtime: config: linux: Edit BlockIO struct
`WeightDevice`, `ThrottleReadBpsDevice`, `ThrottleWriteBpsDevice`,
`ThrottleReadIOpsDevice`, `ThrottleWriteIOpsDevice` are now slices to
well defined structs to allow setting multiple devices in their respective
blkio file. By using a string to represents those values it wasn't possible
to set correct values when multiple devices were passed in the config
(either newline separated or comma separated).

Signed-off-by: Antonio Murdaca <runcom@linux.com>
2015-09-17 20:56:45 +02:00
Antonio Murdaca 8a97e3774a Fix typo in BlockIO struct comment
Signed-off-by: Antonio Murdaca <runcom@linux.com>
2015-09-16 13:00:56 +02:00
Vishnu Kannan 429f936ff9 Adding cgroups path to the Spec.
Signed-off-by: Vishnu Kannan <vishnuk@google.com>
2015-09-10 11:22:29 -07:00
Mrunal Patel d3a6069dc0 Change the rlimit type to string instead of int
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-09-09 12:46:23 -04:00
Vincent Batts 752f35c86f runtime_config: comments for golint
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-04 15:47:17 -04:00
Julian Friedman 47282257b8 Define constants for Linux Namespace names
Signed-off-by: Julian Friedman <julz.friedman@uk.ibm.com>
2015-09-04 19:27:14 +01:00
Alexander Morozov 527a3eec38 Merge pull request #64 from cyphar/add-pids-cgroup
spec: linux: add support for the PIDs cgroup
2015-09-03 21:09:55 -07:00
Brandon Philips 1ebe348f97 runtime: use opencontainer vs oci
In an effort to be more discoverable and self-describing change out the
term "oci" for "opencontainer". We should consider using this as the
prefix for global namespaces going forward as oc has conflicts with
existing tools and oci is the name of the initiative not the specs.
2015-09-03 18:31:38 -07:00
Aleksa Sarai 834fb5db52 spec: linux: add support for the PIDs cgroup
Add support for the PIDs cgroup as a cgroup resource constraint in the
Linux container specification. Since PIDs are a real resource, we need
to support the ability to limit them.

The PIDs cgroup subsystem is available in Linux 4.3+.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2015-09-03 17:32:35 +10:00
Michael Crosby 180df9dd8f Add runtime state configuration and structs
This adds runtime state information for oci container's so that it can
be persisted and used by external tools.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-09-02 11:15:23 -07:00
Alexander Morozov 138deee141 Merge pull request #130 from LK4D4/fix_linux_runtime
Fix LinuxRuntime field
2015-09-01 06:59:49 -07:00
Alexander Morozov c83c65ccd5 Return golint-compliant naming for mappings
It was lost in pull request about runtime config

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-08-31 16:55:45 -07:00
Alexander Morozov cc8a99757d Fix LinuxRuntime field
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-08-31 14:06:28 -07:00
W. Trevor King d9f623da6d runtime_config_linux: Fix 'LinuxSpec' -> 'LinuxRuntimeSpec' in comment
Fix a copy-paste error from 7232e4b1 (specs: introduce the concept of
a runtime.json, #88).

Signed-off-by: W. Trevor King <wking@tremily.us>
2015-08-28 21:26:49 -07:00
Brandon Philips 7232e4b137 specs: introduce the concept of a runtime.json
Based on our discussion in-person yesterday it seems necessary to
separate the concept of runtime configuration from application
configuration. There are a few motivators:

- To support runtime updates of things like cgroups, rlimits, etc we
  should separate things that are inherently runtime specific from
  things that are static to the application running in the container.

- To support the goal of being able to move a bundle between hosts we
  should make it clear what parts of the spec are and are not portable
  between hosts so that upon landing on a new host the non-portable
  options may be rewritten or removed.

- In order to attach a cryptographic identity to a bundle we must not
  include details in the bundle that are host specific.
2015-08-26 09:44:09 -07:00