Skip to content

Commit 7bce59f

Browse files
author
Mrunal Patel
authored
Merge pull request #564 from jhowardmsft/jjh/processplatformtags
Platform annotations on `Process` struct
2 parents 2239827 + ce3ac33 commit 7bce59f

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)