Skip to content

Commit

Permalink
Adds Linux Sysctl support to the spec
Browse files Browse the repository at this point in the history
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
  • Loading branch information
mrunalp committed Jun 30, 2015
1 parent c495c71 commit d267774
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions spec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ type Spec struct {
}

type Linux struct {
UserMapping map[string]UserMapping `json:"userMapping"`
Rlimits []Rlimit `json:"rlimits"`
SystemProperties map[string]string `json:"systemProperties"`
Resources *Resources `json:"resources"`
Namespaces []Namespace `json:"namespaces"`
Capabilities []string `json:"capabilities"`
Devices []string `json:"devices"`
UserMapping map[string]UserMapping `json:"userMapping"`
Rlimits []Rlimit `json:"rlimits"`
Sysctl map[string]string `json:"sysctl"`
Resources *Resources `json:"resources"`
Namespaces []Namespace `json:"namespaces"`
Capabilities []string `json:"capabilities"`
Devices []string `json:"devices"`
}

type Namespace struct {
Expand Down Expand Up @@ -187,6 +187,7 @@ func createLibcontainerConfig(spec *Spec) (*configs.Config, error) {
"/proc/sys", "/proc/sysrq-trigger", "/proc/irq", "/proc/bus",
}
}
config.Sysctl = spec.Linux.Sysctl
return config, nil
}

Expand Down

0 comments on commit d267774

Please sign in to comment.