Skip to content

Commit

Permalink
Merge pull request #159 from mrunalp/rlimit_type
Browse files Browse the repository at this point in the history
Change the rlimit type to string instead of int
  • Loading branch information
vbatts committed Sep 9, 2015
2 parents fbac038 + d3a6069 commit 931c6a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime-config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ For more information, see [the man page](http://man7.org/linux/man-pages/man8/sy
```

rlimits allow setting resource limits.
The type is from the values defined in [the man page](http://man7.org/linux/man-pages/man2/setrlimit.2.html).
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.
`type` is a string with a value from those defined in [the man page](http://man7.org/linux/man-pages/man2/setrlimit.2.html).
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.

## SELinux process label

Expand Down
2 changes: 1 addition & 1 deletion runtime_config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type IDMapping struct {
// Rlimit type and restrictions
type Rlimit struct {
// Type of the rlimit to set
Type int `json:"type"`
Type string `json:"type"`
// Hard is the hard limit for the specified type
Hard uint64 `json:"hard"`
// Soft is the soft limit for the specified type
Expand Down

0 comments on commit 931c6a9

Please sign in to comment.