!49 [sync] PR-48: 【缺陷处理】处理umask设置为0077时,podman拉起postgres容器失败
From: @openeuler-sync-bot Reviewed-by: @caihaomin Signed-off-by: @caihaomin
This commit is contained in:
commit
70f7e4d064
26
0004-create-directories-with-0755-mode.patch
Normal file
26
0004-create-directories-with-0755-mode.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 473f8f74668bf216f1279186226d221644596bcc Mon Sep 17 00:00:00 2001
|
||||
From: wang--ge <wang__ge@126.com>
|
||||
Date: Mon, 28 Mar 2022 19:39:21 +0800
|
||||
Subject: [PATCH] create directories with 0755 mode
|
||||
|
||||
---
|
||||
cmd/podman/main.go | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
|
||||
index d4c8454..b2e245a 100644
|
||||
--- a/cmd/podman/main.go
|
||||
+++ b/cmd/podman/main.go
|
||||
@@ -156,6 +156,9 @@ func main() {
|
||||
logrus.Info("running as rootless")
|
||||
}
|
||||
|
||||
+ //Be sure we can create directories with 0755 mode.
|
||||
+ syscall.Umask(0022)
|
||||
+
|
||||
if logLevel == "debug" {
|
||||
debug = true
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
%define debug_package %{nil}
|
||||
Name: podman
|
||||
Version: 0.10.1
|
||||
Release: 11
|
||||
Release: 12
|
||||
Summary: A daemonless container engine for managing Containers
|
||||
Epoch: 1
|
||||
License: ASL 2.0
|
||||
@ -118,6 +118,7 @@ Patch4: CVE-2021-20188-PRE3.patch
|
||||
Patch5: CVE-2021-20188.patch
|
||||
Patch6: 0002-Fix-the-invalid-memory-address-reference.patch
|
||||
Patch7: 0003-eat-signal-23-in-signal-proxy.patch
|
||||
Patch8: 0004-create-directories-with-0755-mode.patch
|
||||
|
||||
%description
|
||||
Podman manages the entire container ecosystem which includes pods,
|
||||
@ -227,6 +228,9 @@ install -Dp -m644 libpod.conf %{buildroot}%{_datadir}/containers/libpod.conf
|
||||
%{_mandir}/man5/*.5*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 28 2022 Ge Wang <wangge20@huawei.com> 1:0.10.1-12
|
||||
- Set umask to 022 ensure create directories with 0755 mode
|
||||
|
||||
* Sat Jan 08 2022 houyingchao <houyingchao@huawei.com> 1:0.10.1-11
|
||||
- Solve the podman's compilation failure
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user