mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +08:00
vendor latest c/{buildah,common,image,storage}
Make sure everything passes for rc2. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
12
vendor/github.com/containers/buildah/pkg/parse/parse.go
generated
vendored
12
vendor/github.com/containers/buildah/pkg/parse/parse.go
generated
vendored
@@ -249,6 +249,18 @@ func parseSecurityOpts(securityOpts []string, commonOpts *define.CommonBuildOpti
|
||||
commonOpts.ApparmorProfile = con[1]
|
||||
case "seccomp":
|
||||
commonOpts.SeccompProfilePath = con[1]
|
||||
case "mask":
|
||||
commonOpts.Masks = append(commonOpts.Masks, strings.Split(con[1], ":")...)
|
||||
case "unmask":
|
||||
unmasks := strings.Split(con[1], ":")
|
||||
for _, unmask := range unmasks {
|
||||
matches, _ := filepath.Glob(unmask)
|
||||
if len(matches) > 0 {
|
||||
commonOpts.Unmasks = append(commonOpts.Unmasks, matches...)
|
||||
continue
|
||||
}
|
||||
commonOpts.Unmasks = append(commonOpts.Unmasks, unmask)
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("invalid --security-opt 2: %q", opt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user