Commit Graph

12 Commits

Author SHA256 Message Date
163738596d Accepting request 975835 from home:fcrozat:branches:Virtualization:containers
- Update to 1.4.5:
  + CRIU: add support for different manage cgroups modes.
  + linux: the hook processes inherit the crun process
    environment if there is no environment block specified in the
    OCI configuration.
  ° exec: fix double free when using --apparmor and 
    --process-label.

OBS-URL: https://build.opensuse.org/request/show/975835
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=13
2022-05-10 08:46:08 +00:00
e4da896bdb Accepting request 969577 from home:dfaggioli:Virtualization
- It'd be nice to run the test suite with %check. It however, still
  does not work properly inside OBS workers. Add it commented (and
  explain it in a comment)
- switch to latest upstream version (1.4.4)
- big jump from 0.21! Here's a short summary, for details,
  see: https://github.com/containers/crun/releases
  * 1.4.4
    wasm, kubernetes: support wasm for kubernetes infrastructure with side-cars
    Resolve symlinks in bind mounts when creating a user namespace.
    Fix CVE-2022-27650: exec does not set inheritable capabilities.
  * 1.4.3
    cgroup: avoid potential infinite loop when deleting a cgroup.
    support additional options for idmap mounts.
    open the source for a bind mount in the host.
  * 1.4.2
    CRIU: add pre-dump support.
    Fix running with a read-only /dev.
    Ignore EROFS when chowning standard stream files.
    Add validation for sysctls before applying them.
  * 1.4.1
    Fix check for an invalid path.
    Allow deleting a container while in created state.
    cgroup: do not set cpu limits if number of shares is set to 0.
  * 1.4
    wasm: support for running on kubernetes with containerd.
    linux: add support for recursive mount options.
    add support for idmapped mounts through a new mount option "idmap".
    linux: improve detection of /dev target.
    now crun exec uses CLONE_INTO_CGROUP on supported kernels when using cgroup v2.
    retry the openat2 syscall if it fails with EAGAIN.
    cgroup: set the CPUWeight/CPUShares on the systemd scope cgroup.
    on new kernels, use setns with pidfd.
    attempt the chdir again with the specified user if it failed before changing credentials.
  * 1.3
    add support to natively build and run WebAssembly workload and WebAssembly containers.
    allow to specify sub-cgroup for exec.
    chown std streams if they are not a TTY.
    attach the correct streams if the container is suspended and restored multiple times.
    fix race condition when enabling controllers on cgroup v2.
  * 1.2
    exec: fix regression in 1.1 where containers are being wrongly reported as paused.
    criu: add support for external ipc, uts and time namespaces.
  * 1.1
    cgroup: use cgroup.kill when available.
    exec: refuse to exec in a paused container/cgroup.
    container: Set primary process to 1 via LISTEN_PID by default if user configuration is missing.
    criu: Add support for external PID namespace.
    criu: fix save of external descriptors.
    utils: retry openat2 on EAGAIN.
  * 1.0
    cgroup: chown the current container cgroup to root in the container.
    linux: treat pidfd_open failures EINVAL as ESRCH.
    cgroup: add support for setting memory.use_hierarchy on cgroup v1.
    Makefile.am: fix link error when using directly libcrun.
    Fix symlink target mangling for tmpcopyup targets.
- fix bsc#1197871, CVE-2022-27650 (as 1.4.4 contains the fixes itself)
- update and fixup dependencies

OBS-URL: https://build.opensuse.org/request/show/969577
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=11
2022-04-12 22:04:19 +00:00
95f9d78cf4 Accepting request 928761 from home:dfaggioli:Virtualization
- Add libprotobuf-c-devel as an explicit dependency, for fixing
  the build;
- Get rid of rpmlintrc, as it's no longer needed.

OBS-URL: https://build.opensuse.org/request/show/928761
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=10
2021-11-08 15:11:43 +00:00
765bc91827 Accepting request 914070 from home:dfaggioli:branches:Virtualization:containers
- make libkrun support conditional, so we can have crun (without
  libkrun, of course) on all arches, which may help with
  bsc#1188914.

OBS-URL: https://build.opensuse.org/request/show/914070
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=9
2021-08-24 17:32:43 +00:00
fb30f9b72b OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=8 2021-08-09 16:13:56 +00:00
acefa465b3 Accepting request 911022 from home:fcrozat:branches:Virtualization:containers
- Drop libkrun-dlopen.patch and adapt to libkrun new package name,
  it is a plugin, not a regular shared library.

OBS-URL: https://build.opensuse.org/request/show/911022
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=7
2021-08-09 15:12:50 +00:00
f9395f9751 Accepting request 910491 from home:fcrozat:branches:Virtualization:containers
- Add libkrun-dlopen.patch: use soname when dlopening libkrun.

OBS-URL: https://build.opensuse.org/request/show/910491
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=6
2021-08-06 12:46:50 +00:00
8c5623c25e Accepting request 910479 from home:polslinux:branches:Virtualization:containers
- Update to 0.21
  - honor memory swappiness set to 0
  - status: add fields for owner and created timestamp
  - cgroup: lookup pids controller as well when the memory controller
    is not available
  - when compiled with krun, automatically use it if the current
    executable file is called "krun".
  - container: ignore error when resetting the SELinux label for the
    keyring.
  - container: call prestart hooks before rootfs is RO.
  - cgroup: added support cleaning custom controllers on cgroupv1.
  - spec: add support for --bundle.
  - exec: add --no-new-privs.
  - exec: add --process-label and --apparmor to change SELinux and
    AppArmor labels.
  - cgroup: kill procs in cgroup on EBUSY.
  - cgroup: ignore devices errors when running in a user namespace.
  - seccomp: drop SECCOMP_FILTER_FLAG_LOG by default.
  - seccomp: report correct action in error message.
  - apply SELinux label to keyring.
  - add custom annotation run.oci.delegate-cgroup.
  - close_range fallbacks to close on EPERM.
  - report error if the cgroup path was set and the cgroup could not be
    joined.
  - on exec, honor additional_gids from the process spec, not the
    container definition.
  - spec: add cgroup ns if on cgroup v2.
  - systemd: support array of strings for cgroup annotation.
  - join all the cgroup v1 controllers.
  - raise a warning when newuidmap/newgidmap fail.
  - handle eBPF access(dev_name, F_OK) call correctly.
  - fix some memory leaks on errors when libcrun is used by a long
    running process.
  - fix the SELinux label for masked directories.
  - support default seccomp errno value.
  - fail if no default seccomp action specified.
  - support OCI seccomp notify listener.
  - improve OOM error messages.
  - ignore unknown capabilities and raise a warning.
  - always remount bind mounts to drop not requested mount flags.

OBS-URL: https://build.opensuse.org/request/show/910479
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=5
2021-08-06 12:28:15 +00:00
Dominique Leuenberger
7a0d8e1bfc Accepting request 880784 from Virtualization:containers
crun is a simple and fast OCI runtime, written in C. It is build (in this package) with libkrun support so that we can run OCI container images as lightweight VMs, directly via podman

OBS-URL: https://build.opensuse.org/request/show/880784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crun?expand=0&rev=1
2021-03-24 15:15:46 +00:00
fe584d3e52 Accepting request 880783 from home:dfaggioli:Virtualization
- Add a mention to crun-rpmlintrc in the spec file

OBS-URL: https://build.opensuse.org/request/show/880783
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=3
2021-03-23 18:33:23 +00:00
5cf22f2253 Accepting request 880004 from home:dfaggioli:Virtualization
- Since we're building with libkrun support, let's enable only the
  arch-es for which we do have libkrun

OBS-URL: https://build.opensuse.org/request/show/880004
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=2
2021-03-22 14:19:24 +00:00
8b50eb06ea Accepting request 878678 from home:dfaggioli:Virtualization
crun is a fast and low-memory footprint OCI Container Runtime fully written in C. In this package, it is built with the support for libkrun enabled. This means that it will be possible to run containers as lightweight VMs, directly from podman (see here: https://copr.fedorainfracloud.org/coprs/slp/crun-krun/)

OBS-URL: https://build.opensuse.org/request/show/878678
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/crun?expand=0&rev=1
2021-03-18 08:21:20 +00:00