mirror of https://github.com/containers/podman.git
Merge pull request #15040 from Luap99/api-umask
API: libpod/create use correct default umask
This commit is contained in:
commit
f53234a67e
|
@ -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