Skip to content

Commit ce3ac33

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

specs-go/config.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ type Process struct {
4343
// Capabilities are Linux capabilities that are kept for the container.
4444
Capabilities []string `json:"capabilities,omitempty" platform:"linux"`
4545
// Rlimits specifies rlimit options to apply to the process.
46-
Rlimits []Rlimit `json:"rlimits,omitempty"`
46+
Rlimits []Rlimit `json:"rlimits,omitempty" platform:"linux"`
4747
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
48-
NoNewPrivileges bool `json:"noNewPrivileges,omitempty"`
49-
48+
NoNewPrivileges bool `json:"noNewPrivileges,omitempty" platform:"linux"`
5049
// ApparmorProfile specifies the apparmor profile for the container.
5150
ApparmorProfile string `json:"apparmorProfile,omitempty" platform:"linux"`
5251
// SelinuxLabel specifies the selinux context that the container process is run as.

0 commit comments

Comments
 (0)