2 # SPDX-License-Identifier: GPL-2.0
4 # Execute a subprocess in a network namespace
8 readonly NETNS
="ns-$(mktemp -u XXXXXX)"
11 ip netns add
"${NETNS}"
12 ip
-netns "${NETNS}" link
set lo up
16 ip netns del
"${NETNS}"
22 ip netns
exec "${NETNS}" "$@"