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 <crosbymichael@gmail.com> Upstream-commit: f5a154f2d2b2bea5054ae35314d15021a8bf8ae4 Component: engine
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user