Skip to content

Commit bbe3159

Browse files
Ma Shimiaowking
authored andcommitted
specs-go: Rlimits is not Linux-specific
Signed-off-by: Ma Shimiao <[email protected]>
1 parent f5f5613 commit bbe3159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs-go/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type Process struct {
4747
// Capabilities are Linux capabilities that are kept for the process.
4848
Capabilities *LinuxCapabilities `json:"capabilities,omitempty" platform:"linux"`
4949
// Rlimits specifies rlimit options to apply to the process.
50-
Rlimits []LinuxRlimit `json:"rlimits,omitempty" platform:"linux"`
50+
Rlimits []Rlimit `json:"rlimits,omitempty"`
5151
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
5252
NoNewPrivileges bool `json:"noNewPrivileges,omitempty" platform:"linux"`
5353
// ApparmorProfile specifies the apparmor profile for the container.
@@ -215,8 +215,8 @@ type LinuxIDMapping struct {
215215
Size uint32 `json:"size"`
216216
}
217217

218-
// LinuxRlimit type and restrictions
219-
type LinuxRlimit struct {
218+
// Rlimit type and restrictions
219+
type Rlimit struct {
220220
// Type of the rlimit to set
221221
Type string `json:"type"`
222222
// Hard is the hard limit for the specified type

0 commit comments

Comments
 (0)