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>
This commit is contained in:
Paul Holzinger
2022-07-22 14:16:25 +02:00
parent 99bf6f96cd
commit 5a80770e8e
2 changed files with 5 additions and 1 deletions

View File

@ -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 {