!58 kata-containers: chmod agent exec fifo to 644
From: @holyfei Reviewed-by: @flyflyflypeng,@duguhaotian Signed-off-by: @duguhaotian
This commit is contained in:
commit
14411727b2
@ -2,7 +2,7 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%define VERSION 2.1.0
|
%define VERSION 2.1.0
|
||||||
%define RELEASE 4
|
%define RELEASE 5
|
||||||
|
|
||||||
Name: kata-containers
|
Name: kata-containers
|
||||||
Version: %{VERSION}
|
Version: %{VERSION}
|
||||||
@ -108,6 +108,12 @@ strip %{buildroot}/usr/bin/containerd-shim-kata-v2
|
|||||||
%doc
|
%doc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 27 2021 yangfeiyu <yangfeiyu2@huawei.com> - 2.1.0-5
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:chmod agent exec fifo
|
||||||
|
|
||||||
* Fri Sep 17 2021 yangfeiyu <yangfeiyu2@huawei.com> - 2.1.0-4
|
* Fri Sep 17 2021 yangfeiyu <yangfeiyu2@huawei.com> - 2.1.0-4
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
29
patches/0008-kata-containers-adpat-with-iSulad.patch
Normal file
29
patches/0008-kata-containers-adpat-with-iSulad.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 5ee8e64c8c620f02cb580f1f3349ae63660ca34c Mon Sep 17 00:00:00 2001
|
||||||
|
From: holyfei <yangfeiyu20092010@163.com>
|
||||||
|
Date: Mon, 27 Sep 2021 11:03:58 +0800
|
||||||
|
Subject: [PATCH] kata-containers: adpat with iSulad
|
||||||
|
|
||||||
|
reason: chmod the exec fifo to 644, isula start container
|
||||||
|
and need the permission
|
||||||
|
|
||||||
|
Signed-off-by: holyfei <yangfeiyu20092010@163.com>
|
||||||
|
---
|
||||||
|
src/agent/rustjail/src/container.rs | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/agent/rustjail/src/container.rs b/src/agent/rustjail/src/container.rs
|
||||||
|
index 748ee486..5113a482 100644
|
||||||
|
--- a/src/agent/rustjail/src/container.rs
|
||||||
|
+++ b/src/agent/rustjail/src/container.rs
|
||||||
|
@@ -822,7 +822,7 @@ impl BaseContainer for LinuxContainer {
|
||||||
|
if stat::stat(fifo_file.as_str()).is_ok() {
|
||||||
|
return Err(anyhow!("exec fifo exists"));
|
||||||
|
}
|
||||||
|
- unistd::mkfifo(fifo_file.as_str(), Mode::from_bits(0o622).unwrap())?;
|
||||||
|
+ unistd::mkfifo(fifo_file.as_str(), Mode::from_bits(0o644).unwrap())?;
|
||||||
|
|
||||||
|
fifofd = fcntl::open(
|
||||||
|
fifo_file.as_str(),
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -5,3 +5,4 @@
|
|||||||
0005-runtime-add-the-secure-component-ozone-support-for-h.patch
|
0005-runtime-add-the-secure-component-ozone-support-for-h.patch
|
||||||
0006-factory-add-the-template-factory-support-for-hypervi.patch
|
0006-factory-add-the-template-factory-support-for-hypervi.patch
|
||||||
0007-kata-containers-support-with-iSulad.patch
|
0007-kata-containers-support-with-iSulad.patch
|
||||||
|
0008-kata-containers-adpat-with-iSulad.patch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user