Skip to content

Commit 103926f

Browse files
author
John Howard
committed
Platform markers on Process struct
Signed-off-by: John Howard <[email protected]>
1 parent b3ce195 commit 103926f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

specs-go/config.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@ type Process struct {
4040
// Cwd is the current working directory for the process and must be
4141
// relative to the container's root.
4242
Cwd string `json:"cwd"`
43-
// Capabilities are Linux capabilities that are kept for the container.
43+
// Capabilities are Linux capabilities that are kept for the container. (this field is platform dependent)
4444
Capabilities []string `json:"capabilities,omitempty" platform:"linux"`
45-
// Rlimits specifies rlimit options to apply to the process.
46-
Rlimits []Rlimit `json:"rlimits,omitempty"`
47-
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
48-
NoNewPrivileges bool `json:"noNewPrivileges,omitempty"`
49-
45+
// Rlimits specifies rlimit options to apply to the process. (this field is platform dependent)
46+
Rlimits []Rlimit `json:"rlimits,omitempty" platform:"linux,solaris"`
47+
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container. (this field is platform dependent)
48+
NoNewPrivileges bool `json:"noNewPrivileges,omitempty" platform:"linux,solaris"`
5049
// ApparmorProfile specifies the apparmor profile for the container. (this field is platform dependent)
5150
ApparmorProfile string `json:"apparmorProfile,omitempty" platform:"linux"`
5251
// SelinuxLabel specifies the selinux context that the container process is run as. (this field is platform dependent)

0 commit comments

Comments
 (0)