mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user