Signed-off-by: Yuan Sun
---
testcases/kernel/containers/userns/userns02.c | 14 +---
testcases/kernel/containers/userns/userns03.c | 24 ++---
testcases/kernel/containers/userns/userns04.c | 31 ---
3 files changed, 7 insertions(+), 62 deletions(-)
* Save the iptables before the testcase and restore it after the testcase
* Add lib function 'cmd_test' for test01
* Add remove_rule and remove_all_rules for test to flush the rules
* Delete the needless check(grep -c Chain and grep "100% packet loss")
in test01 and test02
Signed-off-by: Cui Bix
Signed-off-by: Yuan Sun
---
doc/test-writing-guidelines.txt | 7 +++---
include/test.h| 2 ++
lib/tst_res.c | 31 +++
testcases/kernel/containers/userns/userns01.c | 13 ++-
4 files cha
Kernel imposes a limit of 32 nested levels of pid namespaces.
Signed-off-by: Yuan Sun
---
runtest/containers | 1 +
testcases/kernel/containers/pidns/.gitignore | 1 +
testcases/kernel/containers/pidns/pidns32.c | 96
3 files changed, 98