diff --git a/config-linux.md b/config-linux.md index 74a9e3e75..5784425a6 100644 --- a/config-linux.md +++ b/config-linux.md @@ -40,6 +40,9 @@ The following parameters can be specified to setup namespaces: The runtime MUST [generate an error](runtime.md#errors) if `path` is not associated with a namespace of type `type`. If `path` is not specified, the runtime MUST create a new [container namespace](glossary.md#container-namespace) of type `type`. + For hierarchical namespaces (e.g. `pid`, `user`), the new container namespace MUST be a child of the [runtime namespace](glossary.md#runtime-namespace) of that type. + For seeded namespaces (e.g. `mount`, `uts`), the new container namespace MUST be seeded by the runtime namespace of that type. + When `type` is not `user`, new namespaces MUST be owned by the container `user` namespace. If a namespace type is not specified in the `namespaces` array, the container MUST inherit the [runtime namespace](glossary.md#runtime-namespace) of that type. If a `namespaces` field contains duplicated namespaces with same `type`, the runtime MUST [generate an error](runtime.md#errors). diff --git a/glossary.md b/glossary.md index 09f80e421..3ad061047 100644 --- a/glossary.md +++ b/glossary.md @@ -15,7 +15,7 @@ For example, namespaces, resource limits, and mounts are all part of the contain ## Container namespace -On Linux, a leaf in the [namespace][namespaces.7] hierarchy in which the [configured process](config.md#process) executes. +On Linux, the [namespaces][namespaces.7] in which the [configured process](config.md#process) executes. ## JSON @@ -30,9 +30,7 @@ It reads the [configuration files](#configuration) from a [bundle](#bundle), use ## Runtime namespace -On Linux, a leaf in the [namespace][namespaces.7] hierarchy from which the [runtime](#runtime) process is executed. -New container namespaces will be created as children of the runtime namespaces. - +On Linux, the namespaces from which new [container namespaces](config-linux.md#namespaces) are created. [JSON]: https://tools.ietf.org/html/rfc7159 [UTF-8]: http://www.unicode.org/versions/Unicode8.0.0/ch03.pdf