You've already forked runc
mirror of
https://github.com/opencontainers/runc.git
synced 2025-08-05 14:35:47 +03:00
When built with nokmem we explicitly are disabling support for kmemcg,
but it is a strict specification requirement that if we cannot fulfil an
aspect of the container configuration that we error out.
Completely ignoring explicitly-requested kmemcg limits with nokmem would
undoubtably lead to problems.
Fixes: 6a2c155968
("libcontainer: ability to compile without kmem")
Signed-off-by: Aleksa Sarai <asarai@suse.de>
16 lines
272 B
Go
16 lines
272 B
Go
// +build linux,nokmem
|
|
|
|
package fs
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
func EnableKernelMemoryAccounting(path string) error {
|
|
return nil
|
|
}
|
|
|
|
func setKernelMemory(path string, kernelMemoryLimit int64) error {
|
|
return errors.New("kernel memory accounting disabled in this runc build")
|
|
}
|