Skip to content

Commit

Permalink
Platform markers on Process struct
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <jhoward@microsoft.com>
  • Loading branch information
John Howard committed Sep 14, 2016
1 parent b3ce195 commit 103926f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ type Process struct {
// Cwd is the current working directory for the process and must be
// relative to the container's root.
Cwd string `json:"cwd"`
// Capabilities are Linux capabilities that are kept for the container.
// Capabilities are Linux capabilities that are kept for the container. (this field is platform dependent)
Capabilities []string `json:"capabilities,omitempty" platform:"linux"`
// Rlimits specifies rlimit options to apply to the process.
Rlimits []Rlimit `json:"rlimits,omitempty"`
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
NoNewPrivileges bool `json:"noNewPrivileges,omitempty"`

// Rlimits specifies rlimit options to apply to the process. (this field is platform dependent)
Rlimits []Rlimit `json:"rlimits,omitempty" platform:"linux,solaris"`
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container. (this field is platform dependent)
NoNewPrivileges bool `json:"noNewPrivileges,omitempty" platform:"linux,solaris"`
// ApparmorProfile specifies the apparmor profile for the container. (this field is platform dependent)
ApparmorProfile string `json:"apparmorProfile,omitempty" platform:"linux"`
// SelinuxLabel specifies the selinux context that the container process is run as. (this field is platform dependent)
Expand Down

0 comments on commit 103926f

Please sign in to comment.