summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-05 15:38:11 -0400
committerGitHub <noreply@github.com>2021-05-05 15:38:11 -0400
commit404bc2684edd14b20d02d8cd05ca3e6b6ee8888d (patch)
tree44d917aef41b2b1d6c1a2514184510f2ae0bdcb2 /cmd
parent0bd5da5b7fe0aad31d795cf5bea1b37c9053f791 (diff)
parent4fd1965ab4d1395b5cc4a0e03526ef9c43f794ec (diff)
downloadpodman-404bc2684edd14b20d02d8cd05ca3e6b6ee8888d.tar.gz
podman-404bc2684edd14b20d02d8cd05ca3e6b6ee8888d.tar.bz2
podman-404bc2684edd14b20d02d8cd05ca3e6b6ee8888d.zip
Merge pull request #10185 from rhatdan/volume
Add filepath glob support to --security-opt unmask
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/common/specgen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index d0b012090..7896ddfc1 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -540,7 +540,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
return fmt.Errorf("invalid systempaths option %q, only `unconfined` is supported", con[1])
}
case "unmask":
- s.ContainerSecurityConfig.Unmask = append(s.ContainerSecurityConfig.Unmask, strings.Split(con[1], ":")...)
+ s.ContainerSecurityConfig.Unmask = append(s.ContainerSecurityConfig.Unmask, con[1:]...)
default:
return fmt.Errorf("invalid --security-opt 2: %q", opt)
}