summaryrefslogtreecommitdiff
path: root/pkg/specgenutil/volumes.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-10-28 10:15:21 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-10-28 15:30:06 +0200
commit4e9e6f21ff1f600191f661c9102149bb49067dff (patch)
tree694f7226f5d2be152bdbd79e5a726411a2955804 /pkg/specgenutil/volumes.go
parente6286fbace138f501ebf2a4a28d3ded3fcc0643a (diff)
downloadpodman-4e9e6f21ff1f600191f661c9102149bb49067dff.tar.gz
podman-4e9e6f21ff1f600191f661c9102149bb49067dff.tar.bz2
podman-4e9e6f21ff1f600191f661c9102149bb49067dff.zip
volumes: allow more options for devpts
allow to pass down more options that are supported by the kernel. Discussion here: https://github.com/containers/toolbox/issues/568 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/specgenutil/volumes.go')
-rw-r--r--pkg/specgenutil/volumes.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/specgenutil/volumes.go b/pkg/specgenutil/volumes.go
index 1f0753432..184bfadf8 100644
--- a/pkg/specgenutil/volumes.go
+++ b/pkg/specgenutil/volumes.go
@@ -483,6 +483,8 @@ func getDevptsMount(args []string) (spec.Mount, error) {
for _, val := range args {
kv := strings.SplitN(val, "=", 2)
switch kv[0] {
+ case "uid", "gid", "mode", "ptxmode", "newinstance", "max":
+ newMount.Options = append(newMount.Options, val)
case "target", "dst", "destination":
if len(kv) == 1 {
return newMount, errors.Wrapf(optionArgError, kv[0])