Merge pull request #968 from tonistiigi/security-cap-fix

llb: fix security mode cap check
docker-19.03 dockerfile/1.1.1
Tõnis Tiigi 2019-04-27 09:55:44 -07:00 committed by GitHub
commit 89851c6c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ func (e *ExecOp) Marshal(c *Constraints) (digest.Digest, []byte, *pb.OpMetadata,
addCap(&e.constraints, pb.CapExecMetaNetwork)
}
if e.meta.Security != SecurityModeInsecure {
if e.meta.Security != SecurityModeSandbox {
addCap(&e.constraints, pb.CapExecMetaSecurity)
}