Merge pull request #71 from rootfs/master

make rootfs mount propagation mode settable
This commit is contained in:
Alexander Morozov 2015-07-17 08:56:33 -07:00
commit 5c98addb2b
2 changed files with 9 additions and 0 deletions

View File

@ -139,6 +139,13 @@ rlimits allow setting resource limits. The type is from the values defined in [t
uid/gid mappings describe the user namespace mappings from the host to the container. *from* is the starting uid/gid on the host to be mapped to *to* which is the starting uid/gid in the container and *count* refers to the number of ids to be mapped. The Linux kernel has a limit of 5 such mappings that can be specified.
## Rootfs Mount Propagation
rootfsPropagation sets the rootfs's mount propagation. Its value is either slave, private, or shared. [The kernel doc](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt) has more information about mount propagation.
```
"rootfsPropagation": "slave",
```
## Security
**TODO:** security profiles

View File

@ -28,6 +28,8 @@ type Linux struct {
Capabilities []string `json:"capabilities"`
// Devices are a list of device nodes that are created and enabled for the container.
Devices []string `json:"devices"`
// RootfsPropagation is the rootfs mount propagation mode for the container.
RootfsPropagation string `json:"rootfsPropagation"`
}
// User specifies linux specific user and group information for the container's