summaryrefslogtreecommitdiff
path: root/test/system/410-selinux.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-30 10:12:07 -0400
committerGitHub <noreply@github.com>2021-09-30 10:12:07 -0400
commit966b6030fa5cc31c163e344b64109eddeffc3529 (patch)
tree4fb7cafe2e792ef2fe6408d081d350c710c5a2fa /test/system/410-selinux.bats
parent831842e520fc99ec2d4579ae806774412a78c828 (diff)
parent5c1b3e8d7256edf248c0a753ded611d5e6fab8c0 (diff)
downloadpodman-966b6030fa5cc31c163e344b64109eddeffc3529.tar.gz
podman-966b6030fa5cc31c163e344b64109eddeffc3529.tar.bz2
podman-966b6030fa5cc31c163e344b64109eddeffc3529.zip
Merge pull request #11798 from giuseppe/skip-pid-shared-ns-on-rootless-cgroups-v1
test: skip test on rootless cgroupsv1
Diffstat (limited to 'test/system/410-selinux.bats')
-rw-r--r--test/system/410-selinux.bats4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/system/410-selinux.bats b/test/system/410-selinux.bats
index 5ee0e0715..0f7c35c65 100644
--- a/test/system/410-selinux.bats
+++ b/test/system/410-selinux.bats
@@ -113,6 +113,10 @@ function check_label() {
@test "podman selinux: shared context in (some) namespaces" {
skip_if_no_selinux
+ # rootless users have no usable cgroups with cgroupsv1, so containers
+ # must use a pid namespace and not join an existing one.
+ skip_if_rootless_cgroupsv1
+
run_podman run -d --name myctr $IMAGE top
run_podman exec myctr cat -v /proc/self/attr/current
context_c1="$output"