rpm: update 4.17.1 -> 4.18
PATCH 1/1 rpm: update 4.17.1 -> 4.18
(From OE-Core rev: 5bef402da334595ed9302b8bca1acdf5e88bfe11)
This will fix #CVE-2021-35938 rpm: races with chown/chmod/capabilities calls during installation
upstream branch=rpm-4.18: git://github.com/rpm-software-management/rpm
---
...When-cross-installing-execute-package-scriptlets-wit.patch | 2 +-
.../rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patch | 3 +--
meta/recipes-devtools/rpm/{rpm_4.17.1.bb => rpm_4.18.bb} | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
rename meta/recipes-devtools/rpm/{rpm_4.17.1.bb => rpm_4.18.bb} (99%)meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch +1 -1
@@ -53,7 +53,7 @@ Signed-off-by: Alexander Kanavin <[email protected]> if (rc != RPMRC_FAIL) { if (script_type & RPMSCRIPTLET_EXEC) { -- rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, &script->nextFileFunc); +- rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, script->nextFileFunc); + if (getenv("RPM_NO_CHROOT_FOR_SCRIPTS") != NULL) { + rpmChrootOut(); + rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, &script->nextFileFunc);
meta/recipes-devtools/rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patch +1 -2
@@ -20,11 +20,10 @@ diff --git a/tools/elfdeps.c b/tools/elfdeps.c index d205935bb..3a8945b33 100644 --- a/tools/elfdeps.c +++ b/tools/elfdeps.c -@@ -5,10 +5,14 @@ +@@ +5,14 @@ #include <unistd.h> #include <stdlib.h> #include <fcntl.h> --#include <error.h> #include <errno.h> #include <popt.h> #include <gelf.h>
meta/recipes-devtools/rpm/rpm_4.18.bb renamed from meta/recipes-devtools/rpm/rpm_4.17.1.bb +2 -2
@@ -24,7 +24,7 @@ HOMEPAGE = "http://www.rpm.org" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=c4eec0c20c6034b9407a09945b48a43f" -SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.17.x;protocol=https \ +SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.18.x;protocol=https \ file://environment.d-rpm.sh \ file://0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch \ file://0001-Do-not-read-config-files-from-HOME.patch \
@@ -43,7 +43,7 @@ SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.17.x;protoc " PE = "1" -SRCREV = "5bef402da334595ed9302b8bca1acdf5e88bfe11" +SRCREV = "ea0d77c52e176e2876fdb1d07ad41e9e2635a93e" S = "${WORKDIR}/git"
Signature · 1 line
2.25.1
You have to backport the fix I'm afraid. Stable releases do not allow major upgrades like that.
Alex
Quoted 82 lines · vkumbhar
(From OE-Core rev:
5bef402da334595ed9302b8bca1acdf5e88bfe11)This will fix #CVE-2021-35938 rpm: races with chown/chmod/capabilities calls during installation
upstream branch=rpm-4.18:
git://github.com/rpm-software-management/rpmSigned-off-by Vivek Kumbhar <[email protected]>--- ...When-cross-installing-execute-package-scriptlets-wit.patch | 2 +- .../rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patch | 3 +-- meta/recipes-devtools/rpm/{rpm_4.17.1.bb => rpm_4.18.bb} | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) rename meta/recipes-devtools/rpm/{rpm_4.17.1.bb => rpm_4.18.bb} (99%)meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch +1
-1@@ -53,7 +53,7 @@ Signed-off-by: Alexander Kanavin <[email protected]> if (rc != RPMRC_FAIL) { if (script_type & RPMSCRIPTLET_EXEC) { -- rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, &script->nextFileFunc); +- rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, script->nextFileFunc); + if (getenv("RPM_NO_CHROOT_FOR_SCRIPTS") != NULL) { + rpmChrootOut(); + rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, &script->nextFileFunc);meta/recipes-devtools/rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patch +1
-2@@ -20,11 +20,10 @@ diff --git a/tools/elfdeps.c b/tools/elfdeps.c index d205935bb..3a8945b33 100644 --- a/tools/elfdeps.c +++ b/tools/elfdeps.c -@@ -5,10 +5,14 @@ +@@ +5,14 @@ #include <unistd.h> #include <stdlib.h> #include <fcntl.h> --#include <error.h> #include <errno.h> #include <popt.h> #include <gelf.h>meta/recipes-devtools/rpm/rpm_4.18.bb renamed from meta/recipes-devtools/rpm/rpm_4.17.1.bb +2
-3@@ -24,7 +24,7 @@ HOMEPAGE = "http://www.rpm.org" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=c4eec0c20c6034b9407a09945b48a43f" -SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.17.x;protocol=https \ +SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.18.x;protocol=https \ file://environment.d-rpm.sh \ file://0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch \ file://0001-Do-not-read-config-files-from-HOME.patch \@@ -43,7 +43,7 @@ SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.17.x;protoc " PE = "1" -SRCREV = "5bef402da334595ed9302b8bca1acdf5e88bfe11" +SRCREV = "ea0d77c52e176e2876fdb1d07ad41e9e2635a93e" S = "${WORKDIR}/git" --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177769): https://lists.openembedded.org/g/openembedded-core/message/177769
Mute This Topic: https://lists.openembedded.org/mt/97259257/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Okay Sure, I will backport the fix only instead of upgrading.
-Thanks,
Vivek
Quoted 109 lines · Alexander Kanavin
You have to backport the fix I'm afraid. Stable releases do not allow major upgrades like that.
Alex
Quoted 4 lines · vkumbhar
(From OE-Core rev:
5bef402da334595ed9302b8bca1acdf5e88bfe11)This will fix #CVE-2021-35938 rpm: races with chown/chmod/capabilities
calls during installation
Quoted 4 lines
upstream branch=rpm-4.18:
git://github.com/rpm-software-management/rpmSigned-off-by Vivek Kumbhar <[email protected]>Quoted 8 lines
--- ...When-cross-installing-execute-package-scriptlets-wit.patch | 2 +- .../rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patch | 3 +-- meta/recipes-devtools/rpm/{rpm_4.17.1.bb => rpm_4.18.bb} | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) rename meta/recipes-devtools/rpm/{rpm_4.17.1.bb => rpm_4.18.bb} (99%)diff --git
a/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patchb/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patchQuoted 2 lines
index
2a0069cafe..13d01faa0e100644
---
a/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patchQuoted 1 line
+++
b/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patchReview Signed-off-by: Alexander Kanavin <
Quoted 1 line
(quoted diff) +0
-0@@ -53,7 +53,7 @@ Signed-off-by: Alexander Kanavin <meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch Signed-off-by: Alexander Kanavin <[email protected]>
Quoted 4 lines
meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch +0
-1if (rc != RPMRC_FAIL) { if (script_type & RPMSCRIPTLET_EXEC) { -- rc = runExtScript(plugins, prefixes, script->descr, lvl,scriptFd, &args,
script->body, arg1, arg2,&script->nextFileFunc);Review Signed-off-by: Alexander Kanavin < · line 55
Quoted 1 line
(quoted diff) +1
-0+- rc = runExtScript(plugins, prefixes, script->descr, lvl,scriptFd, &args,
script->body, arg1, arg2,script->nextFileFunc);meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch Signed-off-by: Alexander Kanavin <[email protected]>
Quoted 3 lines
meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch +0
-0+ if (getenv("RPM_NO_CHROOT_FOR_SCRIPTS") != NULL) { + rpmChrootOut(); + rc = runExtScript(plugins, prefixes, script->descr, lvl,scriptFd, &args,
script->body, arg1, arg2,&script->nextFileFunc);Quoted 1 line
diff --git
a/meta/recipes-devtools/rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patchb/meta/recipes-devtools/rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patchQuoted 2 lines
index 9783396639..cab54c3fb6 100644
---
a/meta/recipes-devtools/rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patchQuoted 1 line
+++
b/meta/recipes-devtools/rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patchReview
Quoted 14 lines
meta/recipes-devtools/rpm/files/0001-tools-Add-error.h-for-non-glibc-case.patch +1
-2@@ -20,11 +20,10 @@ diff --git a/tools/elfdeps.c b/tools/elfdeps.c index d205935bb..3a8945b33 100644 --- a/tools/elfdeps.c +++ b/tools/elfdeps.c -@@ -5,10 +5,14 @@ +@@ +5,14 @@ #include <unistd.h> #include <stdlib.h> #include <fcntl.h> --#include <error.h> #include <errno.h> #include <popt.h> #include <gelf.h>(quoted diff) +0
-0b/meta/recipes-devtools/rpm/rpm_4.18.bb
meta/recipes-devtools/rpm/rpm_4.18.bb HOMEPAGE = "http://www.rpm.org" · line 27
Quoted 11 lines
similarity index 99%
rename from meta/recipes-devtools/rpm/rpm_4.17.1.bb rename to meta/recipes-devtools/rpm/rpm_4.18.bb index9b6446f265..724dbbe70a100644meta/recipes-devtools/rpm/rpm_4.18.bb renamed from meta/recipes-devtools/rpm/rpm_4.17.1.bb +0
-1@@ -24,7 +24,7 @@ HOMEPAGE = "http://www.rpm.org" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=c4eec0c20c6034b9407a09945b48a43f" -SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.17.x;protocol=https \
meta/recipes-devtools/rpm/rpm_4.18.bb HOMEPAGE = "http://www.rpm.org" · line 27
Quoted 1 line
meta/recipes-devtools/rpm/rpm_4.18.bb renamed from meta/recipes-devtools/rpm/rpm_4.17.1.bb +1
-0+SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.18.x;protocol=https \
meta/recipes-devtools/rpm/rpm_4.18.bb HOMEPAGE = "http://www.rpm.org" · line 29
Quoted 2 lines
meta/recipes-devtools/rpm/rpm_4.18.bb renamed from meta/recipes-devtools/rpm/rpm_4.17.1.bb +0
-0file://environment.d-rpm.sh \file://0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch \
meta/recipes-devtools/rpm/rpm_4.18.bb SRC_URI = "git://
Quoted 2 lines
meta/recipes-devtools/rpm/rpm_4.18.bb renamed from meta/recipes-devtools/rpm/rpm_4.17.1.bb +0
-0file://0001-Do-not-read-config-files-from-HOME.patch \@@ -43,7 +43,7 @@ SRC_URI = "git://github.com/rpm-software-management/rpm;branch=rpm-4.17.x;protoc
Quoted 12 lines
meta/recipes-devtools/rpm/rpm_4.18.bb renamed from meta/recipes-devtools/rpm/rpm_4.17.1.bb +1
-2" PE = "1" -SRCREV = "5bef402da334595ed9302b8bca1acdf5e88bfe11" +SRCREV = "ea0d77c52e176e2876fdb1d07ad41e9e2635a93e" S = "${WORKDIR}/git" --2.25.1
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#177769):https://lists.openembedded.org/g/openembedded-core/message/177769
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/97259257/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-