Skip to content

Commit aa7e143

Browse files
committed
Merge pull request opencontainers#35 from mrunalp/rlimits
Adds section for Linux Rlimits
2 parents ad212ee + 7f9d7d3 commit aa7e143

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

config-linux.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,21 @@ For more information, see [the man page](http://man7.org/linux/man-pages/man8/sy
104104
}
105105
```
106106

107-
## Security
107+
## Linux rlimits
108+
109+
```
110+
"rlimits": [
111+
{
112+
"type": "RLIMIT_NOPROC"
113+
"soft": 1024,
114+
"hard": 102400
115+
}
116+
]
117+
```
118+
119+
rlimits allow setting resource limits. The type is from one 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.
120+
121+
## Security
108122

109123
**TODO:** security profiles
110124

0 commit comments

Comments
 (0)