summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/xattr_trusted.c
diff options
context:
space:
mode:
authorGuillaume Nault <gnault@redhat.com>2023-01-08 16:45:46 +0100
committerPaolo Abeni <pabeni@redhat.com>2023-01-10 10:13:52 +0100
commitc53cb00f7983a5474f2d36967f84908b85af9159 (patch)
tree9cf33052bc3e4e2127320fb79d0204edc30be3ca /fs/hfsplus/xattr_trusted.c
parente59370b2e96eb8e7e057a2a16e999ff385a3f2fb (diff)
downloadlinux-c53cb00f7983a5474f2d36967f84908b85af9159.tar.bz2
selftests/net: l2_tos_ttl_inherit.sh: Run tests in their own netns.
This selftest currently runs half in the current namespace and half in a netns of its own. Therefore, the test can fail if the current namespace is already configured with incompatible parameters (for example if it already has a veth0 interface). Adapt the script to put both ends of the veth pair in their own netns. Now veth0 is created in NS0 instead of the current namespace, while veth1 is set up in NS1 (instead of the 'testing' netns). The user visible netns names are randomised to minimise the risk of conflicts with already existing namespaces. The cleanup() function doesn't need to remove the virtual interface anymore: deleting NS0 and NS1 automatically removes the virtual interfaces they contained. We can remove $ns, which was only used to run ip commands in the 'testing' netns (let's use the builtin "-netns" option instead). However, we still need a similar functionality as ping and tcpdump now need to run in NS0. So we now have $RUN_NS0 for that. Fixes: b690842d12fd ("selftests/net: test l2 tunnel TOS/TTL inheriting") Reported-by: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr> Tested-by: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr> Signed-off-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'fs/hfsplus/xattr_trusted.c')
0 files changed, 0 insertions, 0 deletions