summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-07-22 17:34:22 +0200
committerGitHub <noreply@github.com>2022-07-22 17:34:22 +0200
commitf53234a67eac066e3ea59ed225b866e0597debb9 (patch)
tree5aa69d0833243b66da0b8ad939b94ef01724702d /pkg
parentd1f432dd566a8ccf69b4a36f8677273ad6a1feed (diff)
parent5a80770e8e4e0150a57a9870dd9cbf2c85dafb6e (diff)
downloadpodman-f53234a67eac066e3ea59ed225b866e0597debb9.tar.gz
podman-f53234a67eac066e3ea59ed225b866e0597debb9.tar.bz2
podman-f53234a67eac066e3ea59ed225b866e0597debb9.zip
Merge pull request #15040 from Luap99/api-umask
API: libpod/create use correct default umask
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 {