mirror of https://github.com/containers/podman.git
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:
parent
99bf6f96cd
commit
5a80770e8e
|
@ -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 {
|
||||
|
|
|
@ -123,7 +123,8 @@ t GET libpod/containers/${cid}/json 200 \
|
|||
.Id=$cid \
|
||||
.State.Status~\\\(exited\\\|stopped\\\) \
|
||||
.State.Running=false \
|
||||
.State.ExitCode=0
|
||||
.State.ExitCode=0 \
|
||||
.Config.Umask=0022 # regression check for #15036
|
||||
t DELETE libpod/containers/$cid 200 .[0].Id=$cid
|
||||
|
||||
CNAME=myfoo
|
||||
|
|
Loading…
Reference in New Issue