@@ -437,7 +437,7 @@ var _ = Describe("Podman run", func() {
437
437
session .WaitWithDefaultTimeout ()
438
438
Expect (session .OutputToString ()).To (BeEmpty ())
439
439
440
- session = podmanTest .Podman ([]string {"run" , "-d" , "--name=maskCtr2" , "--security-opt" , "unmask=/proc/acpi:/sys/firmware" , ALPINE , "sleep" , "200" })
440
+ session = podmanTest .Podman ([]string {"run" , "-d" , "--name=maskCtr2" , "--security-opt" , "unmask=/proc/acpi:/sys/firmware:/sys/fs/cgroup " , ALPINE , "sleep" , "200" })
441
441
session .WaitWithDefaultTimeout ()
442
442
Expect (session ).Should (ExitCleanly ())
443
443
session = podmanTest .Podman ([]string {"exec" , "maskCtr2" , "ls" , "/sys/firmware" })
@@ -448,6 +448,9 @@ var _ = Describe("Podman run", func() {
448
448
session .WaitWithDefaultTimeout ()
449
449
Expect (session .OutputToString ()).To (Not (BeEmpty ()))
450
450
Expect (session ).Should (ExitCleanly ())
451
+ session = podmanTest .Podman ([]string {"exec" , "maskCtr2" , "sh" , "-c" , "awk '$5 ~ /\\ /sys\\ /fs\\ /cgroup/ && $6 ~ /^rw,|,rw,|,rw$|^rw$/ { print }' /proc/self/mountinfo | grep ." })
452
+ session .WaitWithDefaultTimeout ()
453
+ Expect (session ).Should (ExitCleanly ())
451
454
452
455
session = podmanTest .Podman ([]string {"run" , "-d" , "--name=maskCtr3" , "--security-opt" , "mask=/sys/power/disk" , ALPINE , "sleep" , "200" })
453
456
session .WaitWithDefaultTimeout ()
0 commit comments