kata-containers: chmod agent exec fifo to 644
reason: chmod agent exec fifo to 644, because isula start container and need the permission to read from fifo file Signed-off-by: holyfei <yangfeiyu20092010@163.com>
This commit is contained in:
parent
cd24743099
commit
9ffd6c0dc5
@ -2,7 +2,7 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
%define VERSION 2.1.0
|
||||
%define RELEASE 4
|
||||
%define RELEASE 5
|
||||
|
||||
Name: kata-containers
|
||||
Version: %{VERSION}
|
||||
@ -108,6 +108,12 @@ strip %{buildroot}/usr/bin/containerd-shim-kata-v2
|
||||
%doc
|
||||
|
||||
%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
|
||||
- Type:enhancement
|
||||
- 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
|
||||
0006-factory-add-the-template-factory-support-for-hypervi.patch
|
||||
0007-kata-containers-support-with-iSulad.patch
|
||||
0008-kata-containers-adpat-with-iSulad.patch
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user