Commit 50f05aa
committed
Add Verify function to check if Ulimit max value is too big
When parsing the ulimit, we should check if the ulimit max value is greater then
the processes max value. If yes then we should return an error.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>1 parent d36096e commit 50f05aa
2 files changed
Lines changed: 10 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 112 | + | |
| 113 | + | |
126 | 114 | | |
127 | 115 | | |
128 | | - | |
129 | | - | |
| 116 | + | |
| 117 | + | |
130 | 118 | | |
131 | 119 | | |
132 | | - | |
| 120 | + | |
133 | 121 | | |
134 | 122 | | |
135 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
0 commit comments