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>
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
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
|
|
|