Compare commits
No commits in common. "c8-stream-3.0" and "c9-beta-stream-latest" have entirely different histories.
c8-stream-
...
c9-beta-st
@ -1 +1 @@
|
||||
c79a414d0b980611ba929a7526b7b4c30c2b3b1d SOURCES/crun-0.18.tar.gz
|
||||
c34de35a8489e23778b9c7b860945b870b3f3339 SOURCES/crun-1.0.tar.gz
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/crun-0.18.tar.gz
|
||||
SOURCES/crun-1.0.tar.gz
|
||||
|
@ -1,43 +0,0 @@
|
||||
From 320a7ec41342c95fd6bdc500cd207eb0ea5cda6a Mon Sep 17 00:00:00 2001
|
||||
From: Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
Date: Fri, 19 Feb 2021 13:25:37 +0100
|
||||
Subject: [PATCH] Revert "tests: build init always statically"
|
||||
|
||||
This reverts commit a0f322a49a10a014a447b505eda5923a8e6aff7c as it
|
||||
causes issues on RHEL 8.
|
||||
|
||||
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
---
|
||||
Makefile.am | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index e39dc3b..2b8e18b 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -14,7 +14,7 @@ srpm: dist-gzip rpm/crun.spec
|
||||
$(MAKE) -C $(WD) dist-gzip
|
||||
rpmbuild -bs --define "_sourcedir $(WD)" --define "_specdir $(WD)" --define "_builddir $(WD)" --define "_srcrpmdir $(WD)" --define "_rpmdir $(WD)" --define "_buildrootdir $(WD)/.build" rpm/crun.spec
|
||||
|
||||
-CLEANFILES = crun.spec tests/init
|
||||
+CLEANFILES = crun.spec
|
||||
|
||||
lib_LTLIBRARIES = libcrun.la
|
||||
|
||||
@@ -79,9 +79,9 @@ noinst_PROGRAMS = tests/init $(UNIT_TESTS)
|
||||
|
||||
TESTS_LDADD = libcrun_testing.a $(FOUND_LIBS)
|
||||
|
||||
-tests/init: tests/init.c
|
||||
- $(CC) -static-libgcc --static -o $@ $<
|
||||
-EXTRA_DIST += tests/init.c
|
||||
+tests_init_LDADD =
|
||||
+tests_init_LDFLAGS = -static-libgcc -all-static
|
||||
+tests_init_SOURCES = tests/init.c $(UNIT_TESTS)
|
||||
|
||||
tests_tests_libcrun_utils_CFLAGS = -I $(abs_top_builddir)/libocispec/src -I $(abs_top_srcdir)/libocispec/src -I $(abs_top_builddir)/src -I $(abs_top_srcdir)/src
|
||||
tests_tests_libcrun_utils_SOURCES = tests/tests_libcrun_utils.c
|
||||
--
|
||||
2.29.2
|
||||
|
||||
|
@ -1,30 +0,0 @@
|
||||
From ed485db1465d67f0215c27529c57a76a1daf5135 Mon Sep 17 00:00:00 2001
|
||||
From: Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
Date: Mon, 28 Feb 2022 11:05:18 +0100
|
||||
Subject: [PATCH 1/2] spec: do not set inheritable capabilities
|
||||
|
||||
Closes: CVE-2022-27650
|
||||
|
||||
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
(cherry picked from commit b847d146d496c9d7beba166fd595488e85488562)
|
||||
---
|
||||
src/libcrun/container.c | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/src/libcrun/container.c b/src/libcrun/container.c
|
||||
index d3fb017..1e3f3e6 100644
|
||||
--- a/src/libcrun/container.c
|
||||
+++ b/src/libcrun/container.c
|
||||
@@ -128,9 +128,6 @@ static char spec_file[] = "\
|
||||
\"CAP_NET_BIND_SERVICE\"\n\
|
||||
],\n\
|
||||
\"inheritable\": [\n\
|
||||
- \"CAP_AUDIT_WRITE\",\n\
|
||||
- \"CAP_KILL\",\n\
|
||||
- \"CAP_NET_BIND_SERVICE\"\n\
|
||||
],\n\
|
||||
\"permitted\": [\n\
|
||||
\"CAP_AUDIT_WRITE\",\n\
|
||||
--
|
||||
2.35.1
|
||||
|
@ -1,31 +0,0 @@
|
||||
From 21cb5a8c7bcc90c42743ffd15cd11a55bf66993d Mon Sep 17 00:00:00 2001
|
||||
From: Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
Date: Mon, 28 Feb 2022 11:06:50 +0100
|
||||
Subject: [PATCH 2/2] exec: --cap do not set inheritable capabilities
|
||||
|
||||
Closes: CVE-2022-27650
|
||||
|
||||
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
||||
(cherry picked from commit 1aeeed2e4fdeffb4875c0d0b439915894594c8c6)
|
||||
---
|
||||
src/exec.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/exec.c b/src/exec.c
|
||||
index bf6c05f..8c9862d 100644
|
||||
--- a/src/exec.c
|
||||
+++ b/src/exec.c
|
||||
@@ -250,8 +250,8 @@ crun_command_exec (struct crun_global_arguments *global_args, int argc, char **a
|
||||
capabilities->effective = exec_options.cap;
|
||||
capabilities->effective_len = exec_options.cap_size;
|
||||
|
||||
- capabilities->inheritable = dup_array (exec_options.cap, exec_options.cap_size);
|
||||
- capabilities->inheritable_len = exec_options.cap_size;
|
||||
+ capabilities->inheritable = NULL;
|
||||
+ capabilities->inheritable_len = 0;
|
||||
|
||||
capabilities->bounding = dup_array (exec_options.cap, exec_options.cap_size);
|
||||
capabilities->bounding_len = exec_options.cap_size;
|
||||
--
|
||||
2.35.1
|
||||
|
@ -1,11 +1,8 @@
|
||||
Summary: OCI runtime written in C
|
||||
Name: crun
|
||||
Version: 0.18
|
||||
Release: 3%{?dist}
|
||||
Version: 1.0
|
||||
Release: 1%{?dist}
|
||||
Source0: https://github.com/containers/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: 0001-revert-tests-build-init-always-statically.patch
|
||||
Patch1: 0001-spec-do-not-set-inheritable-capabilities.patch
|
||||
Patch2: 0002-exec-cap-do-not-set-inheritable-capabilities.patch
|
||||
License: GPLv2+
|
||||
URL: https://github.com/containers/crun
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
|
||||
@ -21,10 +18,11 @@ BuildRequires: systemd-devel
|
||||
BuildRequires: yajl-devel
|
||||
BuildRequires: libseccomp-devel
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: criu-devel
|
||||
BuildRequires: python3-libmount
|
||||
BuildRequires: libtool
|
||||
BuildRequires: go-md2man
|
||||
Provides: oci-runtime = 2
|
||||
Provides: oci-runtime
|
||||
|
||||
%description
|
||||
crun is a runtime for running OCI containers
|
||||
@ -41,7 +39,7 @@ export CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFF
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -rf $RPM_BUILD_ROOT/usr/lib*
|
||||
rm -rf %{buildroot}%{_prefix}/lib*
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
@ -49,21 +47,55 @@ rm -rf $RPM_BUILD_ROOT/usr/lib*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 05 2022 Jindrich Novy <jnovy@redhat.com> - 0.18-3
|
||||
- fix CVE-2022-27650
|
||||
- Related: #2061390
|
||||
* Thu Aug 26 2021 Jindrich Novy <jnovy@redhat.com> - 1.0-1
|
||||
- update to https://github.com/containers/crun/releases/tag/1.0
|
||||
- Related: #1970747
|
||||
|
||||
* Wed Aug 25 2021 Jindrich Novy <jnovy@redhat.com> - 0.21-5
|
||||
- add BR: criu-devel back
|
||||
- Related: #1970747
|
||||
|
||||
* Mon Aug 16 2021 Jindrich Novy <jnovy@redhat.com> - 0.21-4
|
||||
- temporarily disable BR: criu-devel
|
||||
- Related: #1970747
|
||||
|
||||
* Fri Aug 06 2021 Jindrich Novy <jnovy@redhat.com> - 0.21-3
|
||||
- do not use versioned provide
|
||||
- Resolves: #1974951
|
||||
- Related: #1970747
|
||||
|
||||
* Wed Aug 04 2021 Jindrich Novy <jnovy@redhat.com> - 0.21-2
|
||||
- update to https://github.com/containers/crun/releases/tag/0.21
|
||||
- Related: #1970747
|
||||
|
||||
* Tue Jul 27 2021 Jindrich Novy <jnovy@redhat.com> - 0.21-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.21
|
||||
- Related: #1970747
|
||||
|
||||
* Tue Jun 15 2021 Jindrich Novy <jnovy@redhat.com> - 0.20.1-2
|
||||
- add BR: criu-devel
|
||||
- Resolves: #1944964
|
||||
|
||||
* Thu Jun 10 2021 Jindrich Novy <jnovy@redhat.com> - 0.20.1-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.20.1
|
||||
|
||||
* Wed Jun 02 2021 Jindrich Novy <jnovy@redhat.com> - 0.20-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.20
|
||||
|
||||
* Fri May 07 2021 Jindrich Novy <jnovy@redhat.com> - 0.19.1-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.19.1
|
||||
|
||||
* Tue Apr 06 2021 Jindrich Novy <jnovy@redhat.com> - 0.19-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.19
|
||||
|
||||
* Fri Feb 19 2021 Jindrich Novy <jnovy@redhat.com> - 0.18-2
|
||||
- allow to build without glibc-static (thanks to Giuseppe Scrivano)
|
||||
- Related: #1883490
|
||||
|
||||
* Fri Feb 19 2021 Jindrich Novy <jnovy@redhat.com> - 0.18-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.18
|
||||
- Related: #1883490
|
||||
|
||||
* Fri Jan 22 2021 Jindrich Novy <jnovy@redhat.com> - 0.17-1
|
||||
* Tue Jan 26 2021 Jindrich Novy <jnovy@redhat.com> - 0.17-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.17
|
||||
- Related: #1883490
|
||||
|
||||
* Thu Dec 03 2020 Jindrich Novy <jnovy@redhat.com> - 0.16-2
|
||||
- exclude i686 because of build failures
|
||||
@ -71,19 +103,16 @@ rm -rf $RPM_BUILD_ROOT/usr/lib*
|
||||
|
||||
* Wed Nov 25 2020 Jindrich Novy <jnovy@redhat.com> - 0.16-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.16
|
||||
- Related: #1883490
|
||||
|
||||
* Wed Nov 04 2020 Jindrich Novy <jnovy@redhat.com> - 0.15.1-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.15.1
|
||||
- Related: #1883490
|
||||
|
||||
* Thu Oct 29 2020 Jindrich Novy <jnovy@redhat.com> - 0.15-2
|
||||
- synchronize with stream-container-tools-rhel8
|
||||
- Related: #1883490
|
||||
- backport "exec: check read bytes from sync" (gscrivan@redhat.com)
|
||||
(https://github.com/containers/crun/issues/511)
|
||||
|
||||
* Wed Oct 21 2020 Jindrich Novy <jnovy@redhat.com> - 0.15-1
|
||||
- synchronize with stream-container-tools-rhel8
|
||||
- Related: #1883490
|
||||
* Wed Sep 23 2020 Jindrich Novy <jnovy@redhat.com> - 0.15-1
|
||||
- update to https://github.com/containers/crun/releases/tag/0.15
|
||||
|
||||
* Tue Aug 11 2020 Jindrich Novy <jnovy@redhat.com> - 0.14.1-2
|
||||
- use proper CFLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user