@@ -455,9 +455,10 @@ func TestContainerMounts(t *testing.T) {
455455 Readonly : true ,
456456 },
457457 {
458- ContainerPath : "/dev/shm" ,
459- HostPath : filepath .Join (testStateDir , sandboxesDir , testSandboxID , "shm" ),
460- Readonly : false ,
458+ ContainerPath : "/dev/shm" ,
459+ HostPath : filepath .Join (testStateDir , sandboxesDir , testSandboxID , "shm" ),
460+ Readonly : false ,
461+ SelinuxRelabel : true ,
461462 },
462463 },
463464 },
@@ -480,9 +481,10 @@ func TestContainerMounts(t *testing.T) {
480481 Readonly : false ,
481482 },
482483 {
483- ContainerPath : "/dev/shm" ,
484- HostPath : filepath .Join (testStateDir , sandboxesDir , testSandboxID , "shm" ),
485- Readonly : false ,
484+ ContainerPath : "/dev/shm" ,
485+ HostPath : filepath .Join (testStateDir , sandboxesDir , testSandboxID , "shm" ),
486+ Readonly : false ,
487+ SelinuxRelabel : true ,
486488 },
487489 },
488490 },
@@ -553,9 +555,10 @@ func TestContainerMounts(t *testing.T) {
553555 Readonly : false ,
554556 },
555557 {
556- ContainerPath : "/dev/shm" ,
557- HostPath : filepath .Join (testStateDir , sandboxesDir , testSandboxID , "shm" ),
558- Readonly : false ,
558+ ContainerPath : "/dev/shm" ,
559+ HostPath : filepath .Join (testStateDir , sandboxesDir , testSandboxID , "shm" ),
560+ Readonly : false ,
561+ SelinuxRelabel : true ,
559562 },
560563 },
561564 },
0 commit comments