summaryrefslogtreecommitdiff
path: root/cmd/kpod/spec_test.go
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2017-11-27 13:17:42 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-05 10:23:13 +0000
commit34696c55e91294442325ff0d78af84945d3e955f (patch)
tree49dba02028bfba7284af6a1e8771c5dd21c3e2e1 /cmd/kpod/spec_test.go
parentc5c7341d4b5ce0ad1c8feb692f9fd048962c6241 (diff)
downloadpodman-34696c55e91294442325ff0d78af84945d3e955f.tar.gz
podman-34696c55e91294442325ff0d78af84945d3e955f.tar.bz2
podman-34696c55e91294442325ff0d78af84945d3e955f.zip
Add Linux Root Propagation to kpod create and run
Add [r]shared, [r]private, [r]slave functionality to the --volume flag for kpod create and kpod run This sets the root propagation for each bind mount Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #87 Approved by: rhatdan
Diffstat (limited to 'cmd/kpod/spec_test.go')
-rw-r--r--cmd/kpod/spec_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/kpod/spec_test.go b/cmd/kpod/spec_test.go
index 1eedb0e2a..799d6b235 100644
--- a/cmd/kpod/spec_test.go
+++ b/cmd/kpod/spec_test.go
@@ -13,7 +13,7 @@ func TestCreateConfig_GetVolumeMounts(t *testing.T) {
Destination: "/foobar",
Type: "bind",
Source: "foobar",
- Options: []string{"ro", "rbind"},
+ Options: []string{"ro", "rbind", "rprivate"},
}
config := createConfig{
volumes: []string{"foobar:/foobar:ro"},