Merge pull request #1915 from quanweiZhou/fix_start_container_failed_when_drop_all_caps

agent: fix start container failed when dropping all capabilities
This commit is contained in:
Fabiano Fidêncio 2021-05-24 14:13:52 +02:00 committed by GitHub
commit c3f6c88668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -820,7 +820,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(),