!306 [sync] PR-301: runc:fix can't set cpuset-cpus and cpuset-mems at the same time
From: @openeuler-sync-bot Reviewed-by: @zhangsong234 Signed-off-by: @zhangsong234
This commit is contained in:
commit
95d9ec452f
@ -1 +1 @@
|
|||||||
1251c89d252bb9f8136d47c5892497829e78683f
|
ae908e306b8682a184ba191e4a810afe367c607c
|
||||||
|
|||||||
@ -0,0 +1,28 @@
|
|||||||
|
From 29a2bfe1e6197dd79a02e4e2a443ba21bc80c080 Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhongjiawei <zhongjiawei1@huawei.com>
|
||||||
|
Date: Sun, 29 Sep 2024 15:01:34 +0800
|
||||||
|
Subject: [PATCH] runc:fix can't set cpuset-cpus and cpuset-mems at the same
|
||||||
|
time
|
||||||
|
|
||||||
|
---
|
||||||
|
libcontainer/cgroups/fs/cpuset.go | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libcontainer/cgroups/fs/cpuset.go b/libcontainer/cgroups/fs/cpuset.go
|
||||||
|
index 379407e..22b9011 100644
|
||||||
|
--- a/libcontainer/cgroups/fs/cpuset.go
|
||||||
|
+++ b/libcontainer/cgroups/fs/cpuset.go
|
||||||
|
@@ -146,7 +146,9 @@ func (s *CpusetGroup) setCpuset(path, cpuset string) error {
|
||||||
|
func (s *CpusetGroup) Set(path string, r *configs.Resources) error {
|
||||||
|
var ret error
|
||||||
|
if r.CpusetCpus != "" {
|
||||||
|
- return s.setCpuset(path, r.CpusetCpus)
|
||||||
|
+ if err := s.setCpuset(path, r.CpusetCpus); err != nil {
|
||||||
|
+ return err
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
if r.CpusetMems != "" {
|
||||||
|
if err := cgroups.WriteFile(path, "cpuset.mems", r.CpusetMems); err != nil {
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: runc
|
Name: runc
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 30
|
Release: 31
|
||||||
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
|
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -54,6 +54,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
|
|||||||
%{_bindir}/runc
|
%{_bindir}/runc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 29 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-31
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix can't set cpuset-cpus and cpuset-mems at the same time
|
||||||
|
|
||||||
* Tue Sep 10 2024 Song Zhang<zhangsong34@huawei.com> - 1.1.3-30
|
* Tue Sep 10 2024 Song Zhang<zhangsong34@huawei.com> - 1.1.3-30
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- CVE:CVE-2024-45310
|
- CVE:CVE-2024-45310
|
||||||
|
|||||||
@ -56,3 +56,4 @@ patch/0055-runc-do-not-support-set-umask-through-native.umask.patch
|
|||||||
patch/0056-runc-format-log-instead-panic-when-procError-missing.patch
|
patch/0056-runc-format-log-instead-panic-when-procError-missing.patch
|
||||||
patch/0057-rootfs-consolidate-mountpoint-creation-logic.patch
|
patch/0057-rootfs-consolidate-mountpoint-creation-logic.patch
|
||||||
patch/0058-rootfs-try-to-scope-MkdirAll-to-stay-inside-the-root.patch
|
patch/0058-rootfs-try-to-scope-MkdirAll-to-stay-inside-the-root.patch
|
||||||
|
patch/0059-runc-fix-can-t-set-cpuset-cpus-and-cpuset-mems-at-th.patch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user