summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-12-16 15:15:49 +0100
committerGitHub <noreply@github.com>2021-12-16 15:15:49 +0100
commitd1c91c128ea32dae3e9c56c657ea57dfed9f6ad4 (patch)
tree49d510d1e2c069766633367204e97c0475097abf /test
parent91e55e263e860af24f176c5e62405a54ef7356de (diff)
parent4243ca93a42c3ed977662c570302be8a7dc5c5ca (diff)
downloadpodman-d1c91c128ea32dae3e9c56c657ea57dfed9f6ad4.tar.gz
podman-d1c91c128ea32dae3e9c56c657ea57dfed9f6ad4.tar.bz2
podman-d1c91c128ea32dae3e9c56c657ea57dfed9f6ad4.zip
Merge pull request #12618 from giuseppe/dev-cgroup-add-default-devices
oci: configure the devices cgroup with default devices
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_device_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_device_test.go b/test/e2e/run_device_test.go
index 08905aed2..fbf1eb791 100644
--- a/test/e2e/run_device_test.go
+++ b/test/e2e/run_device_test.go
@@ -119,4 +119,11 @@ var _ = Describe("Podman run device", func() {
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
})
+
+ It("podman run cannot access non default devices", func() {
+ session := podmanTest.Podman([]string{"run", "-v /dev:/dev-host", ALPINE, "head", "-1", "/dev-host/kmsg"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Not(Exit(0)))
+ })
+
})