diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2022-03-07 09:34:29 +0100 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2022-03-07 09:34:38 +0100 |
commit | fd88ee22f383b42084acbb2a44c356e2d277e912 (patch) | |
tree | 6d43a4d3f2c088845f0458645f8ea1289fbdc74f /src/transport | |
parent | 1f240bd13fbbe28b1610fe10d298afcd7c61b81e (diff) | |
download | gnunet-fd88ee22f383b42084acbb2a44c356e2d277e912.tar.gz gnunet-fd88ee22f383b42084acbb2a44c356e2d277e912.zip |
-use nft instead of iptables for netjail
Diffstat (limited to 'src/transport')
-rwxr-xr-x | src/transport/test_transport_simple_send.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/transport/test_transport_simple_send.sh b/src/transport/test_transport_simple_send.sh index 3d5266622..0250070be 100755 --- a/src/transport/test_transport_simple_send.sh +++ b/src/transport/test_transport_simple_send.sh | |||
@@ -2,9 +2,10 @@ | |||
2 | if ! [ -d "/run/netns" ]; then | 2 | if ! [ -d "/run/netns" ]; then |
3 | echo You have to create the directory /run/netns. | 3 | echo You have to create the directory /run/netns. |
4 | fi | 4 | fi |
5 | if [ "$(cat /proc/sys/kernel/unprivileged_userns_clone)" == 1 ]; then | 5 | if [ -f /proc/sys/kernel/unprivileged_userns_clone ]; then |
6 | exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_simple_send_topo.conf" | 6 | if [ "$(cat /proc/sys/kernel/unprivileged_userns_clone)" != 1 ]; then |
7 | else | ||
8 | echo -e "Error during test setup: The kernel parameter kernel.unprivileged_userns_clone has to be set to 1! One has to execute\n\n sysctl kernel.unprivileged_userns_clone=1\n" | 7 | echo -e "Error during test setup: The kernel parameter kernel.unprivileged_userns_clone has to be set to 1! One has to execute\n\n sysctl kernel.unprivileged_userns_clone=1\n" |
9 | exit 78 | 8 | exit 78 |
9 | fi | ||
10 | fi | 10 | fi |
11 | exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_simple_send_topo.conf" | ||