runc:do not support set umask through native.umask
(cherry picked from commit c38463bf6d4fccc69ecfac3fc5ddd2c239ac4c9d)
This commit is contained in:
parent
205a08bd35
commit
56b1c6d79b
@ -1 +1 @@
|
|||||||
79523452a255e123d3659b5b7447d9a060487015
|
730600d399df40399622cdf301a5bcf159b71a9f
|
||||||
|
|||||||
@ -0,0 +1,48 @@
|
|||||||
|
From 13bd15e296861b9026ea7581e2442969599a3a9f Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhongjiawei <zhongjiawei1@huawei.com>
|
||||||
|
Date: Thu, 11 Jul 2024 20:20:33 +0800
|
||||||
|
Subject: [PATCH] runc:do not support set umask through native.umask
|
||||||
|
|
||||||
|
Signed-off-by: zhongjiawei <zhongjiawei1@huawei.com>
|
||||||
|
---
|
||||||
|
libcontainer/rootfs_linux.go | 6 ------
|
||||||
|
libcontainer/setns_init_linux.go | 6 ------
|
||||||
|
2 files changed, 12 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libcontainer/rootfs_linux.go b/libcontainer/rootfs_linux.go
|
||||||
|
index 8749114..ef81f5f 100644
|
||||||
|
--- a/libcontainer/rootfs_linux.go
|
||||||
|
+++ b/libcontainer/rootfs_linux.go
|
||||||
|
@@ -190,12 +190,6 @@ func finalizeRootfs(config *configs.Config) (err error) {
|
||||||
|
} else {
|
||||||
|
unix.Umask(0o022)
|
||||||
|
}
|
||||||
|
- umask := utils.SearchLabels(config.Labels, "native.umask")
|
||||||
|
- if umask == "normal" {
|
||||||
|
- unix.Umask(0o022)
|
||||||
|
- } else {
|
||||||
|
- unix.Umask(0o027)
|
||||||
|
- }
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/libcontainer/setns_init_linux.go b/libcontainer/setns_init_linux.go
|
||||||
|
index f1dcab6..d8cdfdf 100644
|
||||||
|
--- a/libcontainer/setns_init_linux.go
|
||||||
|
+++ b/libcontainer/setns_init_linux.go
|
||||||
|
@@ -56,12 +56,6 @@ func (l *linuxSetnsInit) Init() error {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- umask := utils.SearchLabels(l.config.Config.Labels, "native.umask")
|
||||||
|
- if umask == "normal" {
|
||||||
|
- unix.Umask(0o022)
|
||||||
|
- } else {
|
||||||
|
- unix.Umask(0o027)
|
||||||
|
- }
|
||||||
|
if l.config.NoNewPrivileges {
|
||||||
|
if err := unix.Prctl(unix.PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); err != nil {
|
||||||
|
return err
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: runc
|
Name: runc
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 27
|
Release: 28
|
||||||
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
|
||||||
|
* Thu Jul 11 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-28
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:do not support set umask through native.umask
|
||||||
|
|
||||||
* Wed Jun 19 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-27
|
* Wed Jun 19 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-27
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
@ -52,3 +52,4 @@ patch/0051-runc-fix-CVE-2024-21626.patch
|
|||||||
patch/0052-runc-check-cmd-exist.patch
|
patch/0052-runc-check-cmd-exist.patch
|
||||||
patch/0053-runc-fix-CVE-2024-3154.patch
|
patch/0053-runc-fix-CVE-2024-3154.patch
|
||||||
patch/0054-runc-Set-temporary-single-CPU-affinity-before-cgroup-cpus.patch
|
patch/0054-runc-Set-temporary-single-CPU-affinity-before-cgroup-cpus.patch
|
||||||
|
patch/0055-runc-do-not-support-set-umask-through-native.umask.patch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user