mirror of
https://github.com/containers/podman.git
synced 2025-06-01 01:00:22 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user