From b6b5f87d20ada298c3b45bd16346a964bb1a4e33 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Tue, 17 Mar 2015 16:04:15 -0700 Subject: [PATCH] Don't hardcode default rlimit The default for rlimit handling should be to inherit the rlimit of the daemon unless explicitly set. Signed-off-by: Michael Crosby Upstream-commit: f5a154f2d2b2bea5054ae35314d15021a8bf8ae4 Component: engine --- .../daemon/execdriver/native/template/default_template.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/engine/daemon/execdriver/native/template/default_template.go b/components/engine/daemon/execdriver/native/template/default_template.go index cd6ac8bcaf..cbf4203c92 100644 --- a/components/engine/daemon/execdriver/native/template/default_template.go +++ b/components/engine/daemon/execdriver/native/template/default_template.go @@ -66,13 +66,6 @@ func New() *configs.Config { ReadonlyPaths: []string{ "/proc/sys", "/proc/sysrq-trigger", "/proc/irq", "/proc/bus", }, - Rlimits: []configs.Rlimit{ - { - Type: syscall.RLIMIT_NOFILE, - Hard: 1024, - Soft: 1024, - }, - }, } if apparmor.IsEnabled() {