mirror of https://github.com/containers/podman.git
Do not set rlimits if we are rootless
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #1437 Approved by: rhatdan
This commit is contained in:
parent
9126b45a3f
commit
8e65b294c6
|
|
@ -140,7 +140,7 @@ func main() {
|
|||
|
||||
// Only if not rootless, set rlimits for open files.
|
||||
// We open numerous FDs for ports opened
|
||||
if os.Geteuid() == 0 {
|
||||
if !rootless.IsRootless() {
|
||||
rlimits := new(syscall.Rlimit)
|
||||
rlimits.Cur = 1048576
|
||||
rlimits.Max = 1048576
|
||||
|
|
|
|||
Loading…
Reference in New Issue