Revert "runc-docker: upgrade 1.1.4 -> 1.1.12"

This reverts commit 76f2999987.
This commit is contained in:
Bruce Ashfield 2025-02-05 12:24:36 +00:00
parent 76f2999987
commit b5a1645250
4 changed files with 35 additions and 45 deletions

View File

@ -11,20 +11,16 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Makefile | 3 +-- Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-) 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Makefile b/Makefile Index: git/src/import/Makefile
index e3af9bc1..f9d6de96 100644 ===================================================================
--- a/Makefile --- git.orig/src/import/Makefile
+++ b/Makefile +++ git/src/import/Makefile
@@ -24,8 +24,7 @@ ifneq (,$(filter $(GOARCH),386 amd64 arm arm64 ppc64le riscv64 s390x)) @@ -20,7 +20,7 @@
GO_BUILDMODE := "-buildmode=pie"
endif endif
endif endif
-GO_BUILD := $(GO) build -trimpath $(GO_BUILDMODE) \ endif
- $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \ -GO_BUILD := $(GO) build -trimpath $(GO_BUILDMODE) $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \
+GO_BUILD := $(GO) build $(GOBUILDFLAGS) -trimpath $(GO_BUILDMODE) $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \ +GO_BUILD := $(GO) build $(GOBUILDFLAGS) -trimpath $(GO_BUILDMODE) $(EXTRA_FLAGS) -tags "$(BUILDTAGS)" \
-ldflags "$(LDFLAGS_COMMON) $(EXTRA_LDFLAGS)" -ldflags "-X main.gitCommit=$(COMMIT) -X main.version=$(VERSION) $(EXTRA_LDFLAGS)"
GO_BUILD_STATIC := CGO_ENABLED=1 $(GO) build -trimpath $(EXTRA_FLAGS) -tags "$(BUILDTAGS) netgo osusergo" \
GO_BUILDMODE_STATIC := -ldflags "-extldflags -static -X main.gitCommit=$(COMMIT) -X main.version=$(VERSION) $(EXTRA_LDFLAGS)"
--
2.40.0

View File

@ -12,11 +12,11 @@ Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
utils_linux.go | 5 +++++ utils_linux.go | 5 +++++
1 file changed, 5 insertions(+) 1 file changed, 5 insertions(+)
diff --git a/utils_linux.go b/utils_linux.go Index: git/src/import/utils_linux.go
index 60d534e8..ddcab62f 100644 ===================================================================
--- a/utils_linux.go --- git.orig/src/import/utils_linux.go
+++ b/utils_linux.go +++ git/src/import/utils_linux.go
@@ -234,6 +234,11 @@ type runner struct { @@ -267,6 +267,11 @@
} }
func (r *runner) run(config *specs.Process) (int, error) { func (r *runner) run(config *specs.Process) (int, error) {
@ -28,6 +28,3 @@ index 60d534e8..ddcab62f 100644
var err error var err error
defer func() { defer func() {
if err != nil { if err != nil {
--
2.40.0

View File

@ -25,15 +25,15 @@ is set.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
--- ---
signals.go | 56 ++++++++++++++++++++++++++++++++++++++++++++++---- signals.go | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++----
utils_linux.go | 2 +- utils_linux.go | 2 +-
2 files changed, 53 insertions(+), 5 deletions(-) 2 files changed, 51 insertions(+), 5 deletions(-)
diff --git a/signals.go b/signals.go Index: git/src/import/signals.go
index 2555b765..1266ee66 100644 ===================================================================
--- a/signals.go --- git.orig/src/import/signals.go
+++ b/signals.go +++ git/src/import/signals.go
@@ -3,7 +3,9 @@ package main @@ -5,7 +5,9 @@
import ( import (
"os" "os"
"os/signal" "os/signal"
@ -43,7 +43,7 @@ index 2555b765..1266ee66 100644
"github.com/opencontainers/runc/libcontainer" "github.com/opencontainers/runc/libcontainer"
"github.com/opencontainers/runc/libcontainer/system" "github.com/opencontainers/runc/libcontainer/system"
"github.com/opencontainers/runc/libcontainer/utils" "github.com/opencontainers/runc/libcontainer/utils"
@@ -53,9 +55,6 @@ type signalHandler struct { @@ -55,9 +57,6 @@
func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach bool) (int, error) { func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach bool) (int, error) {
// make sure we know the pid of our main process so that we can return // make sure we know the pid of our main process so that we can return
// after it dies. // after it dies.
@ -53,7 +53,7 @@ index 2555b765..1266ee66 100644
pid1, err := process.Pid() pid1, err := process.Pid()
if err != nil { if err != nil {
@@ -65,12 +64,61 @@ func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach @@ -67,12 +66,61 @@
if h.notifySocket != nil { if h.notifySocket != nil {
if detach { if detach {
_ = h.notifySocket.run(pid1) _ = h.notifySocket.run(pid1)
@ -116,11 +116,11 @@ index 2555b765..1266ee66 100644
// Perform the initial tty resize. Always ignore errors resizing because // Perform the initial tty resize. Always ignore errors resizing because
// stdout might have disappeared (due to races with when SIGHUP is sent). // stdout might have disappeared (due to races with when SIGHUP is sent).
_ = tty.resize() _ = tty.resize()
diff --git a/utils_linux.go b/utils_linux.go Index: git/src/import/utils_linux.go
index ddcab62f..280051ea 100644 ===================================================================
--- a/utils_linux.go --- git.orig/src/import/utils_linux.go
+++ b/utils_linux.go +++ git/src/import/utils_linux.go
@@ -315,7 +315,7 @@ func (r *runner) run(config *specs.Process) (int, error) { @@ -345,7 +345,7 @@
if err != nil { if err != nil {
r.terminate(process) r.terminate(process)
} }
@ -129,6 +129,3 @@ index ddcab62f..280051ea 100644
return 0, nil return 0, nil
} }
if err == nil { if err == nil {
--
2.40.0

View File

@ -2,13 +2,13 @@ include runc.inc
# Note: this rev is before the required protocol field, update when all components # Note: this rev is before the required protocol field, update when all components
# have been updated to match. # have been updated to match.
SRCREV_runc-docker = "a9833ff391a71b30069a6c3f816db113379a4346" SRCREV_runc-docker = "974efd2dfca0abec041a3708a2b66bfac6bd2484"
SRC_URI = "git://github.com/opencontainers/runc;branch=release-1.1;name=runc-docker;protocol=https \ SRC_URI = "git://github.com/opencontainers/runc;branch=release-1.1;name=runc-docker;protocol=https \
file://0001-runc-Add-console-socket-dev-null.patch;patchdir=src/import \ file://0001-runc-Add-console-socket-dev-null.patch \
file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch;patchdir=src/import \ file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \
file://0001-runc-docker-SIGUSR1-daemonize.patch;patchdir=src/import \ file://0001-runc-docker-SIGUSR1-daemonize.patch \
" "
RUNC_VERSION = "1.1.12" RUNC_VERSION = "1.1.4"
CVE_PRODUCT = "runc" CVE_PRODUCT = "runc"