You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't create a new tap.T in the middle of a test but reuse the existing
one instead.
Symptoms:
```
$ sudo validation/linux_readonly_paths.t
TAP version 13
ok 1 - root filesystem
ok 2 - hostname
ok 3 - process
ok 4 - mounts
ok 5 - user
ok 6 - rlimits
ok 7 - capabilities
ok 8 - default symlinks
ok 9 - default file system
ok 10 - default devices
ok 11 - linux devices
ok 12 - linux process
ok 13 - masked paths
ok 14 - oom score adj
ok 1 # SKIP syscall action SCMP_ACT_ALLOW
ok 2 # SKIP syscall action SCMP_ACT_ALLOW
ok 3 # SKIP syscall action SCMP_ACT_ALLOW
ok 4 # SKIP syscall action SCMP_ACT_ALLOW
ok 5 # SKIP syscall action SCMP_ACT_ALLOW
ok 6 # SKIP syscall action SCMP_ACT_ALLOW
ok 15 - seccomp
ok 16 - read only paths
ok 17 - rootfs propagation
ok 18 - sysctls
ok 19 - uid mappings
ok 20 - gid mappings
1..20
```
After this patch is applied:
```
$ sudo validation/linux_readonly_paths.t
TAP version 13
ok 1 - root filesystem
ok 2 - hostname
ok 3 - process
ok 4 - mounts
ok 5 - user
ok 6 - rlimits
ok 7 - capabilities
ok 8 - default symlinks
ok 9 - default file system
ok 10 - default devices
ok 11 - linux devices
ok 12 - linux process
ok 13 - masked paths
ok 14 - oom score adj
ok 15 # SKIP syscall action SCMP_ACT_ALLOW
ok 16 # SKIP syscall action SCMP_ACT_ALLOW
ok 17 # SKIP syscall action SCMP_ACT_ALLOW
ok 18 # SKIP syscall action SCMP_ACT_ALLOW
ok 19 # SKIP syscall action SCMP_ACT_ALLOW
ok 20 # SKIP syscall action SCMP_ACT_ALLOW
ok 21 - seccomp
ok 22 - read only paths
ok 23 - rootfs propagation
ok 24 - sysctls
ok 25 - uid mappings
ok 26 - gid mappings
1..26
```
Fixes#593
Signed-off-by: Alban Crequy <[email protected]>
0 commit comments