From 8e65b294c60997b9e394a5e3543673dbebf8fe93 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 13 Sep 2018 13:31:58 -0400 Subject: Do not set rlimits if we are rootless Signed-off-by: Matthew Heon Closes: #1437 Approved by: rhatdan --- cmd/podman/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman') diff --git a/cmd/podman/main.go b/cmd/podman/main.go index 48032a20e..a532bc26e 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -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 -- cgit v1.2.3-54-g00ecf