Skip to content

Commit d3a6069

Browse files
committed
Change the rlimit type to string instead of int
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
1 parent 6cc6798 commit d3a6069

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

runtime-config-linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ For more information, see [the man page](http://man7.org/linux/man-pages/man8/sy
156156
```
157157

158158
rlimits allow setting resource limits.
159-
The type is from the values defined in [the man page](http://man7.org/linux/man-pages/man2/setrlimit.2.html).
160-
The kernel enforces the soft limit for a resource while the hard limit acts as a ceiling for that value that could be set by an unprivileged process.
159+
`type` is a string with a value from those defined in [the man page](http://man7.org/linux/man-pages/man2/setrlimit.2.html).
160+
The kernel enforces the `soft` limit for a resource while the `hard` limit acts as a ceiling for that value that could be set by an unprivileged process.
161161

162162
## SELinux process label
163163

runtime_config_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type IDMapping struct {
7979
// Rlimit type and restrictions
8080
type Rlimit struct {
8181
// Type of the rlimit to set
82-
Type int `json:"type"`
82+
Type string `json:"type"`
8383
// Hard is the hard limit for the specified type
8484
Hard uint64 `json:"hard"`
8585
// Soft is the soft limit for the specified type

0 commit comments

Comments
 (0)