Skip to content

Tags: cedana/runc

Tags

v1.1.2

Toggle v1.1.2's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.1.2 -- "I should think I’m going to be a perpetual student."

This is the second patch release of the runc 1.1 release branch. It
fixes CVE-2022-29162, a minor security issue (which appears to not be
exploitable) related to process capabilities.

This is a similar bug to the ones found and fixed in Docker and
containerd recently (CVE-2022-24769).

 * A bug was found in runc where runc exec --cap executed processes with
   non-empty inheritable Linux process capabilities, creating an atypical Linux
   environment. For more information, see [GHSA-f3fp-gc8g-vw66][] and
   CVE-2022-29162.
 * `runc spec` no longer sets any inheritable capabilities in the created
   example OCI spec (`config.json`) file.

Thanks to all of the contributors who made this release possible:

* Aleksa Sarai <[email protected]>
* Kir Kolyshkin <[email protected]>

Signed-off-by: Aleksa Sarai <[email protected]>

[GHSA-f3fp-gc8g-vw66]: GHSA-f3fp-gc8g-vw66

v1.1.1

Toggle v1.1.1's commit message

Verified

This tag was signed with the committer’s verified signature.
kolyshkin Kir Kolyshkin
v1.1.1 -- "Violence is the last refuge of the incompetent."

This is the first stable release in the 1.1 branch, fixing a few issues
with runc 1.1.0.

Fixed:
* runc run/start can now run a container with read-only /dev in OCI spec,
  rather than error out. (opencontainers#3355)
* runc exec now ensures that --cgroup argument is a sub-cgroup. (opencontainers#3403)
* libcontainer systemd v2 manager no longer errors out if one of the files
  listed in /sys/kernel/cgroup/delegate do not exist in container's
  cgroup. (opencontainers#3387, opencontainers#3404)
* Loosen OCI spec validation to avoid bogus "Intel RDT is not supported"
  error. (opencontainers#3406)
* libcontainer/cgroups no longer panics in cgroup v1 managers if stat
  of /sys/fs/cgroup/unified returns an error other than ENOENT. (opencontainers#3435)

Thanks to all of the contributors who made this release possible:

 * Akihiro Suda <[email protected]>
 * Aleksa Sarai <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * lifubang <[email protected]>
 * Markus Lehtonen <[email protected]>

Signed-off-by: Kir Kolyshkin <[email protected]>

v1.1.0

Toggle v1.1.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.1.0 -- "A plan depends as much upon execution as it does upon conc…

…ept."

This release only contains very minor changes from v1.1.0-rc.1 and is
the first release of the 1.1.y release series of runc.

Changed:
 * libcontainer will now refuse to build without the nsenter package being
   correctly compiled (specifically this requires CGO to be enabled). This
   should avoid folks accidentally creating broken runc binaries (and
   incorrectly importing our internal libraries into their projects). (opencontainers#3331)

Thanks to the following people who made this release possible:

 * Akihiro Suda <[email protected]>
 * Aleksa Sarai <[email protected]>
 * Kir Kolyshkin <[email protected]>

Signed-off-by: Aleksa Sarai <[email protected]>

v1.1.0-rc.1

Toggle v1.1.0-rc.1's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.1.0~rc1 -- "He who controls the spice controls the universe."

This release is the first release candidate for the next minor release
following runc 1.0. It contains all of the bugfixes included in runc 1.0
patch releases (up to and including 1.0.3).

A fair few new features have been added, and several features have been
deprecated (with plans for removal in runc 1.2). At the moment we only
plan to do a single release candidate for runc 1.1, and once 1.1.0 is
released we will not continue updating the 1.0.z runc branch.

Deprecated:
 * runc run/start now warns if a new container cgroup is non-empty or frozen;
   this warning will become an error in runc 1.2. (opencontainers#3132, opencontainers#3223)
 * runc can only be built with Go 1.16 or later from this release onwards.
   (opencontainers#3100, opencontainers#3245)

Removed:
 * `cgroup.GetHugePageSizes` has been removed entirely, and been replaced with
   `cgroup.HugePageSizes` which is more efficient. (opencontainers#3234)
 * `intelrdt.GetIntelRdtPath` has been removed. Users who were using this
   function to get the intelrdt root should use the new `intelrdt.Root`
   instead. (opencontainers#2920, opencontainers#3239)

Added:
 * Add support for RDMA cgroup added in Linux 4.11. (opencontainers#2883)
 * runc exec now produces exit code of 255 when the exec failed.
   This may help in distinguishing between runc exec failures
   (such as invalid options, non-running container or non-existent
   binary etc.) and failures of the command being executed. (opencontainers#3073)
 * runc run: new `--keep` option to skip removal exited containers artefacts.
   This might be useful to check the state (e.g. of cgroup controllers) after
   the container hasexited. (opencontainers#2817, opencontainers#2825)
 * seccomp: add support for `SCMP_ACT_KILL_PROCESS` and `SCMP_ACT_KILL_THREAD`
   (the latter is just an alias for `SCMP_ACT_KILL`). (opencontainers#3204)
 * seccomp: add support for `SCMP_ACT_NOTIFY` (seccomp actions). This allows
   users to create sophisticated seccomp filters where syscalls can be
   efficiently emulated by privileged processes on the host. (opencontainers#2682)
 * checkpoint/restore: add an option (`--lsm-mount-context`) to set
   a different LSM mount context on restore. (opencontainers#3068)
 * runc releases are now cross-compiled for several architectures. Static
   builds for said architectures will be available for all future releases.
   (opencontainers#3197)
 * intelrdt: support ClosID parameter. (opencontainers#2920)
 * runc exec --cgroup: an option to specify a (non-top) in-container cgroup
   to use for the process being executed. (opencontainers#3040, opencontainers#3059)
 * cgroup v1 controllers now support hybrid hierarchy (i.e. when on a cgroup v1
   machine a cgroup2 filesystem is mounted to /sys/fs/cgroup/unified, runc
   run/exec now adds the container to the appropriate cgroup under it). (opencontainers#2087,
   opencontainers#3059)
 * sysctl: allow slashes in sysctl names, to better match `sysctl(8)`'s
   behaviour. (opencontainers#3254, opencontainers#3257)
 * mounts: add support for bind-mounts which are inaccessible after switching
   the user namespace. Note that this does not permit the container any
   additional access to the host filesystem, it simply allows containers to
   have bind-mounts configured for paths the user can access but have
   restrictive access control settings for other users. (opencontainers#2576)
 * Add support for recursive mount attributes using `mount_setattr(2)`. These
   have the same names as the proposed `mount(8)` options -- just prepend `r`
   to the option name (such as `rro`). (opencontainers#3272)
 * Add `runc features` subcommand to allow runc users to detect what features
   runc has been built with. This includes critical information such as
   supported mount flags, hook names, and so on. Note that the output of this
   command is subject to change and will not be considered stable until runc
   1.2 at the earliest. The runtime-spec specification for this feature is
   being developed in opencontainers/runtime-spec#1130. (opencontainers#3296)

Changed:
 * system: improve performance of `/proc/$pid/stat` parsing. (opencontainers#2696)
 * cgroup2: when `/sys/fs/cgroup` is configured as a read-write mount, change
   the ownership of certain cgroup control files (as per
   `/sys/kernel/cgroup/delegate`) to allow for proper deferral to the container
   process. (opencontainers#3057)
 * docs: series of improvements to man pages to make them easier to read and
   use. (opencontainers#3032)

Libcontainer API:
 * internal api: remove internal error types and handling system, switch to Go
   wrapped errors. (opencontainers#3033)
 * New configs.Cgroup structure fields (opencontainers#3177):
   * Systemd (whether to use systemd cgroup manager); and
   * Rootless (whether to use rootless cgroups).
 * New cgroups/manager package aiming to simplify cgroup manager instantiation.
   (opencontainers#3177)
 * All cgroup managers' instantiation methods now initialize cgroup paths and
   can return errors. This allows to use any cgroup manager method (e.g.
   Exists, Destroy, Set, GetStats) right after instantiation, which was not
   possible before (as paths were initialized in Apply only). (opencontainers#3178)

Fixed:
 * nsenter: do not try to close already-closed fds during container setup and
   bail on close(2) failures. (opencontainers#3058)
 * runc checkpoint/restore: fixed for containers with an external bind mount
   which destination is a symlink. (opencontainers#3047).
 * cgroup: improve openat2 handling for cgroup directory handle hardening.
   (opencontainers#3030)
 * `runc delete -f` now succeeds (rather than timing out) on a paused
   container. (opencontainers#3134)
 * runc run/start/exec now refuses a frozen cgroup (paused container in case of
   exec). Users can disable this using `--ignore-paused`. (opencontainers#3132, opencontainers#3223)
 * config: do not permit null bytes in mount fields. (opencontainers#3287)

Thanks to the following people who made this release possible:

 * Adrian Reber <[email protected]>
 * Akihiro Suda <[email protected]>
 * Alban Crequy <[email protected]>
 * Aleksa Sarai <[email protected]>
 * Dave Chen <[email protected]>
 * flouthoc <[email protected]>
 * Fraser Tweedale <[email protected]>
 * Itamar Holder <[email protected]>
 * Kailun Qin <[email protected]>
 * Kang Chen <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * lifubang <[email protected]>
 * Liu Hua <[email protected]>
 * Maksim An <[email protected]>
 * Markus Lehtonen <[email protected]>
 * Mauricio Vásquez <[email protected]>
 * Mengjiao Liu <[email protected]>
 * Mrunal Patel <[email protected]>
 * Neil Johnson <[email protected]>
 * Odin Ugedal <[email protected]>
 * Piotr Resztak <[email protected]>
 * Qiang Huang <[email protected]>
 * Rodrigo Campos <[email protected]>
 * Sascha Grunert <[email protected]>
 * Sebastiaan van Stijn <[email protected]>
 * Shengjing Zhu <[email protected]>
 * xiadanni <[email protected]>

Signed-off-by: Aleksa Sarai <[email protected]>

v1.0.3

Toggle v1.0.3's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.0.3 -- "If you were waiting for the opportune moment, that was it."

This is the third stable release in the 1.0 branch, fixing a handful of medium
priority issues related to mounts and cgroups, as well as a potential security
vulnerability.

This release is expected to be the last point release in the 1.0 branch, as we
are planning to release runc 1.1 in the near future.

Security:
 * A potential vulnerability was discovered in runc (related to an internal
   usage of netlink), however upon further investigation we discovered that
   while this bug was exploitable on the master branch of runc, no released
   version of runc could be exploited using this bug. The exploit required
   being able to create a netlink attribute with a length that would overflow a
   uint16 but this was not possible in any released version of runc. For more
   information see GHSA-v95c-p5hm-xq8f and CVE-2021-43784.

   Due to an abundance of caution we decided to do an emergency release with
   this fix, but to reiterate *we do not believe this vulnerability was
   possible to exploit*. Thanks to Felix Wilhelm from Google Project Zero for
   discovering and reporting this vulnerability so quickly.

Bugfixes:
 * Fixed inability to start a container with read-write bind mount of a
   read-only fuse host mount (opencontainers#3292)
 * Fixed inability to start when read-only /dev in set in spec (opencontainers#3277)
 * Fixed not removing sub-cgroups upon container delete, when rootless cgroup v2
   is used with older systemd (opencontainers#3297)
 * Fixed returning error from GetStats when hugetlb is unsupported (which causes
   excessive logging for kubernetes) (opencontainers#3295)
 * [CI only] Fixed criu 3.16 compatibility issue (opencontainers#3282)
 * [CI only] Add Go 1.17 to the testing matrix (opencontainers#3299)

Enhancements:
 * Improved an error message when dbus-user-session is not installed and
   rootless + cgroup2 + systemd are used (opencontainers#3212)

Thanks to all of the contributors who made this release possible:

 * Akihiro Suda <[email protected]>
 * Aleksa Sarai <[email protected]>
 * Kailun Qin <[email protected]>
 * Kang Chen <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * Odin Ugedal <[email protected]>
 * Sebastiaan van Stijn <[email protected]>

Signed-off-by: Aleksa Sarai <[email protected]>

v1.0.2

Toggle v1.0.2's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.0.2 -- "Given the right lever, you can move a planet."

This is a second stable release in 1.0 branch, fixing a few medium and
high priority issues, including one that affects Kubernetes' usage of
runc's libcontainer.

Bugfixes:

 * Fixed a failure to set CPU quota period in some cases on cgroup v1. (opencontainers#3115)
 * Fixed the inability to start a container with the "adding seccomp filter
   rule for syscall ..." error, caused by redundant seccomp rules (i.e. those
   that has action equal to the default one). Such redundant rules are now
   skipped. (opencontainers#3129)
 * Made release builds reproducible from now on. (opencontainers#3142)
 * Fixed a rare debug log race in runc init, which can result in occasional
   harmful "failed to decode ..." errors from runc run or exec. (opencontainers#3130)
 * Fixed the check in cgroup v1 systemd manager if a container needs to be
   frozen before Set, and add a setting to skip such freeze unconditionally.
   The previous fix for that issue, done in  runc 1.0.1, was not working.
   (opencontainers#3167)

Thanks to all of the contributors who made this release possible:

 * Adrian Reber <[email protected]>
 * Akihiro Suda <[email protected]>
 * Aleksa Sarai <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * Mrunal Patel <[email protected]>
 * Odin Ugedal <[email protected]>

Signed-off-by: Aleksa Sarai <[email protected]>

v1.0.1

Toggle v1.0.1's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.0.1 -- "If in doubt, Meriadoc, always follow your nose."

This is the first stable release in the 1.0 branch, fixing a few medium
and high priority issues with runc 1.0.0, including a few that affect
Kubernetes' usage of libcontainer.

Bugfixes:
 * Fixed occasional runc exec/run failure ("interrupted system call") on an
   Azure volume. (opencontainers#3074)
 * Fixed "unable to find groups ... token too long" error with /etc/group
   containing lines longer than 64K characters. (opencontainers#3079)
 * cgroup/systemd/v1: fix leaving cgroup frozen after Set if a parent cgroup is
   frozen.  This is a regression in 1.0.0, not affecting runc itself but some
   of libcontainer users (e.g Kubernetes). (opencontainers#3085)
 * cgroupv2: bpf: Ignore inaccessible existing programs in case of
   permission error when handling replacement of existing bpf cgroup
   programs. This fixes a regression in 1.0.0, where some SELinux
   policies would block runc from being able to run entirely. (opencontainers#3087)
 * cgroup/systemd/v2: don't freeze cgroup on Set. (opencontainers#3092)
 * cgroup/systemd/v1: avoid unnecessary freeze on Set. (opencontainers#3093)

Thanks to all of the contributors who made this release possible:

 * Aleksa Sarai <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * Maksim An <[email protected]>
 * Mrunal Patel <[email protected]>
 * Odin Ugedal <[email protected]>

Signed-off-by: Aleksa Sarai <[email protected]>

v1.0.0

Toggle v1.0.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.0.0 -- "A wizard is never late, nor is he early, he arrives precis…

…ely when he means to."

This release fixes a few bugs found (almost all related to cgroupv2
handling), and is the first non-rc release of runc in 5 years
(v1.0.0-rc1 was released in 2016). It's been a very long road, and we
thank the many contributors and maintainers that helped us get to this
point (approximately 422 people in total).

As runc follows Semantic Versioning, we will endeavor to not make any
breaking changes without bumping the major version number of runc.

However, it should be noted that Go API usage of runc's internal
implementation (libcontainer) is *not* covered by this policy -- for
historical reasons, this code was not moved into an "internal" package
(this feature did not exist in Go at the time) and because certain
projects currently depend on this, we have not yet moved this code into
an internal package. Despite this, we reserve the right to make breaking
changes in our Go APIs (though we will note such changes in our
changelog, and will try to avoid needless disruption if possible).

Breaking changes:

 * Removed libcontainer/configs.Device* identifiers (deprecated since rc94,
   use libcontainer/devices) (opencontainers#2999)
 * Removed libcontainer/system.RunningInUserNS function (deprecated since
   rc94, use libcontainer/userns) (opencontainers#2999)

Deprecations:

 * The usage of relative paths for mountpoints will now produce a warning
   (such configurations are outside of the spec, and in future runc will
   produce an error when given such configurations). (opencontainers#2917, opencontainers#3004)

Bugfixes:

 * cgroupv2: devices: rework the filter generation to produce consistent
   results with cgroupv1, and always clobber any existing eBPF
   program(s) to fix `runc update` and avoid leaking eBPF programs
   (resulting in errors when managing containers).  (opencontainers#2951)
 * cgroupv2: correctly convert "number of IOs" statistics in a
   cgroupv1-compatible way. (opencontainers#2965, opencontainers#2967, opencontainers#2968, opencontainers#2964)
 * cgroupv2: support larger than 32-bit IO statistics on 32-bit architectures.
 * cgroupv2: wait for freeze to finish before returning from the freezing
   code, optimize the method for checking whether a cgroup is frozen. (opencontainers#2955)
 * cgroups/systemd: fixed "retry on dbus disconnect" logic introduced in rc94
 * cgroups/systemd: fixed returning "unit already exists" error from a systemd
   cgroup manager (regression in rc94) (opencontainers#2997, opencontainers#2996)

Improvements:

 * cgroupv2: support SkipDevices with systemd driver (opencontainers#2958, opencontainers#3019)
 * cgroup/systemd: return, not ignore, stop unit error from Destroy (opencontainers#2946)
 * Fix all golangci-lint failures. (opencontainers#2781, opencontainers#2962)
 * Make "runc --version" output sane even when built with `go get` or
   otherwise outside of our build scripts. (opencontainers#2962)
 * cgroups: set SkipDevices during runc update (so we don't modify
   cgroups at all during `runc update`). (opencontainers#2994)
 * cgroup1: blkio: support BFQ weights. (opencontainers#3010)
 * cgroupv2: set per-device io weights if BFQ IO scheduler is available.
   (opencontainers#3022)

Thanks to the following people who made this release possible:

 * Adrian Reber <[email protected]>
 * Akihiro Suda <[email protected]>
 * Aleksa Sarai <[email protected]>
 * Antti Kervinen <[email protected]>
 * Daniel, Dao Quang Minh <[email protected]>
 * Enrico Weigelt <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * Michael Crosby <[email protected]>
 * Mrunal Patel <[email protected]>
 * Peter Hunt <[email protected]>
 * Qiang Huang <[email protected]>
 * Sebastiaan van Stijn <[email protected]>
 * Shiming Zhang <[email protected]>
 * Yashpal Choudhary <[email protected]>

Vote: +5 -0 %2
Signed-off-by: Aleksa Sarai <[email protected]>

v1.0.0-rc95

Toggle v1.0.0-rc95's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.0.0-rc95 -- "Just when I thought I was out, they pull me back in."

This release of runc contains a fix for CVE-2021-30465[1], and users are
strongly recommended to update (especially if you are providing
semi-limited access to spawn containers to untrusted users).

Aside from this security fix, only a few other changes were made since
v1.0.0-rc94 (the only user-visible change was the addition of support
for defaultErrnoRet in seccomp profiles).

Thanks to the following people who made this release possible:

 * Aleksa Sarai <[email protected]>
 * Giuseppe Scrivano <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * Mrunal Patel <[email protected]>

Due to the nature of this release, it didn't go through the normal
public release procedure. However, this break from procedure was agreed
upon on the security mailing list.

[1]: GHSA-c3xm-pvg7-gh7r

Signed-off-by: Aleksa Sarai <[email protected]>

v1.0.0-rc94

Toggle v1.0.0-rc94's commit message

Verified

This tag was signed with the committer’s verified signature. The key has been revoked.
cyphar Aleksa Sarai
v1.0.0-rc94 -- "Time is an illusion. Lunchtime doubly so."

This release fixes several regressions found in v1.0.0-rc93. We
recommend users update as soon as possible. This release includes the
following notable changes:

Potentially breaking changes:
* cgroupv1: kernel memory limits are now always ignored, as kmemcg has
  been effectively deprecated by the kernel. Users should make use of
  regular memory cgroup controls. (opencontainers#2840)
* libcontainer/cgroups: cgroup managers' `Set` now accept
  `configs.Resources` rather than `configs.Cgroups` (opencontainers#2906)
* libcontainer/cgroups/systemd: reconnect and retry in case dbus
  connection is closed (after dbus restart) (opencontainers#2923)
* libcontainer/cgroups/systemd: don't set limits in `Apply` (opencontainers#2814)

Bugfixes:
* seccomp: fix 32-bit compilation errors (regression in rc93, opencontainers#2783)
* cgroupv2: blkio weight value conversion fix (opencontainers#2786)
* runc init: fix a hang caused by deadlock in seccomp/ebpf loading code
  (regression in rc93, opencontainers#2871)
* runc start: fix "chdir to cwd: permission denied"  for some setups
  (regression in rc93, opencontainers#2894)
* s390: fix broken terminal (regression in rc93, opencontainers#2898)

Improvements:
* runc start/exec: better diagnostics when container limits are too low
  (opencontainers#2812)
* runc start/exec: better cleanup after failed runc init (opencontainers#2855)
* cgroupv1: improve freezing chances (opencontainers#2941, opencontainers#2918, opencontainers#2791)
* cgroupv2: multiple GetStats improvements (opencontainers#2816, opencontainers#2873)
* cgroupv2: fallback to setting io.weight if io.bfq.weight is not
  available (opencontainers#2820)
* capabilities: WARN, not ERROR, for unknown / unavailable capabilities
  (opencontainers#2854)

Thanks to the following people who made this release possible:

 * Adam Korcz <[email protected]>
 * Adrian Reber <[email protected]>
 * Akihiro Suda <[email protected]>
 * Aleksa Sarai <[email protected]>
 * Ben Hutchings <[email protected]>
 * Danail Branekov <[email protected]>
 * Daniel Dao <[email protected]>
 * Enrico Weigelt <[email protected]>
 * Iceber Gu <[email protected]>
 * Kenta Tada <[email protected]>
 * Kieron Browne <[email protected]>
 * Kir Kolyshkin <[email protected]>
 * Liang Zhou <[email protected]>
 * Liu Hua <[email protected]>
 * Mauricio Vásquez <[email protected]>
 * Mrunal Patel <[email protected]>
 * Odin Ugedal <[email protected]>
 * Peter Hunt <[email protected]>
 * Qiang Huang <[email protected]>
 * Ryosuke Hanatsuka <[email protected]>
 * Sascha Grunert <[email protected]>
 * Sebastiaan van Stijn <[email protected]>
 * Shengjing Zhu <[email protected]>
 * Shiming Zhang <[email protected]>
 * Vasiliy Ulyanov <[email protected]>

Vote: +6 -0 !1
Signed-off-by: Aleksa Sarai <[email protected]>