mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
runtime-spec: update pids.limit handling to match new guidance
The main update is actually in github.com/opencontainers/cgroups, but we need to also update runtime-spec to a newer pre-release version to get the updates from there as well. In short, the behaviour change is now that "0" is treated as a valid value to set in "pids.max", "-1" means "max" and unset/nil means "do nothing". As described in the opencontainers/cgroups PR, this change is actually backwards compatible because our internal state.json stores PidsLimit, and that entry is marked as "omitempty". So, an old runc would omit PidsLimit=0 in state.json, and this will be parsed by a new runc as being "nil" -- and both would treat this case as "do not set anything". Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
@@ -10,6 +10,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- The deprecated `libcontainer/userns` package has been removed; use
|
||||
`github.com/moby/sys/userns` instead.
|
||||
|
||||
### Breaking ###
|
||||
- The handling of `pids.limit` has been updated to match the newer guidance
|
||||
from the OCI runtime specification. In particular, now a maximum limit value
|
||||
of `0` will be treated as an actual limit (due to limitations with systemd,
|
||||
it will be treated the same as a limit value of `1`). We only expect users
|
||||
that explicitly set `pids.limit` to `0` will see a behaviour change.
|
||||
(opencontainers/cgroups#48, #4949)
|
||||
|
||||
### Fixed ###
|
||||
- cgroups: provide iocost statistics for cgroupv2. (opencontainers/cgroups#43)
|
||||
- cgroups: retry DBus connection when it fails with EAGAIN.
|
||||
(opencontainers/cgroups#45)
|
||||
- cgroups: improve `cpuacct.usage_all` resilience when parsing data from
|
||||
patched kernels (such as the Tencent kernels). (opencontainers/cgroups#46,
|
||||
opencontainers/cgroups#50)
|
||||
|
||||
## [1.4.0-rc.1] - 2025-09-05
|
||||
|
||||
> おめェもボスになったんだろぉ?
|
||||
|
||||
Reference in New Issue
Block a user