summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-07-22 14:16:25 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-07-22 14:20:29 +0200
commit5a80770e8e4e0150a57a9870dd9cbf2c85dafb6e (patch)
tree887f4bb7b0efdaca587dfa34104ea92285a2102c /pkg
parent99bf6f96cd93867813e72742c484ab0abf15cca4 (diff)
downloadpodman-5a80770e8e4e0150a57a9870dd9cbf2c85dafb6e.tar.gz
podman-5a80770e8e4e0150a57a9870dd9cbf2c85dafb6e.tar.bz2
podman-5a80770e8e4e0150a57a9870dd9cbf2c85dafb6e.zip
API: libpod/create use correct default umask
Make sure containers created via API have the correct umask from containers.conf set. Fixes #15036 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/libpod/containers_create.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/containers_create.go b/pkg/api/handlers/libpod/containers_create.go
index e4964d602..1307c267a 100644
--- a/pkg/api/handlers/libpod/containers_create.go
+++ b/pkg/api/handlers/libpod/containers_create.go
@@ -31,6 +31,9 @@ func CreateContainer(w http.ResponseWriter, r *http.Request) {
ContainerNetworkConfig: specgen.ContainerNetworkConfig{
UseImageHosts: conf.Containers.NoHosts,
},
+ ContainerSecurityConfig: specgen.ContainerSecurityConfig{
+ Umask: conf.Containers.Umask,
+ },
}
if err := json.NewDecoder(r.Body).Decode(&sg); err != nil {