test/distro: Set unprivileged_userns_clone on Debian Buster and earlier

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-04-06 09:48:40 +02:00
parent 081f7c8f4c
commit a20d269630

View file

@ -92,6 +92,7 @@ host make clean
hout RET CFLAGS="-Werror" make; echo $? hout RET CFLAGS="-Werror" make; echo $?
check [ __RET__ -eq 0 ] check [ __RET__ -eq 0 ]
host sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test distro_quick_pasta_test
hint hint
@ -116,6 +117,7 @@ host make clean
hout RET CFLAGS="-Werror" make; echo $? hout RET CFLAGS="-Werror" make; echo $?
check [ __RET__ -eq 0 ] check [ __RET__ -eq 0 ]
host sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test distro_quick_pasta_test
hint hint
@ -147,6 +149,7 @@ host make clean
hout RET CFLAGS="-Werror" make; echo $? hout RET CFLAGS="-Werror" make; echo $?
check [ __RET__ -eq 0 ] check [ __RET__ -eq 0 ]
host sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test distro_quick_pasta_test
hint hint
@ -179,6 +182,7 @@ host make clean
hout RET CFLAGS="-Werror" make; echo $? hout RET CFLAGS="-Werror" make; echo $?
check [ __RET__ -eq 0 ] check [ __RET__ -eq 0 ]
host sysctl -w kernel.unprivileged_userns_clone=1
distro_quick_pasta_test distro_quick_pasta_test
hint hint