diff --git a/0004-create-directories-with-0755-mode.patch b/0004-create-directories-with-0755-mode.patch new file mode 100644 index 0000000000000000000000000000000000000000..2310be83c33e4c7e792206f1950e9cb28ebdaee0 --- /dev/null +++ b/0004-create-directories-with-0755-mode.patch @@ -0,0 +1,26 @@ +From 473f8f74668bf216f1279186226d221644596bcc Mon Sep 17 00:00:00 2001 +From: wang--ge +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 + diff --git a/podman.spec b/podman.spec index 74f231479e56a08e882fc7ea5d9dafb7ce9ca2a9..177dc29d9c2c81203519faabcc10d8359fea5566 100644 --- a/podman.spec +++ b/podman.spec @@ -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 1:0.10.1-12 +- Set umask to 022 ensure create directories with 0755 mode + * Sat Jan 08 2022 houyingchao 1:0.10.1-11 - Solve the podman's compilation failure