1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 Description=Test for NetworkNamespacePath= without mount namespacing
6 ExecStart=sh -x -c '! ip link show dummy-test-exec'
7 ExecStart=sh -x -c 'test ! -e /proc/sys/net/ipv4/conf/dummy-test-exec'
8 # Without mount namespacing, we can access the dummy-test-exec interface through sysfs.
9 ExecStart=sh -x -c 'test -e /sys/class/net/dummy-test-exec'
10 ExecStart=sh -x -c 'ip link show dummy-test-ns'
11 ExecStart=sh -x -c 'test -e /proc/sys/net/ipv4/conf/dummy-test-ns'
12 # Without mount namespacing, we cannot access the dummy-test-ns interface through sysfs.
13 ExecStart=sh -x -c 'test ! -e /sys/class/net/dummy-test-ns'
15 NetworkNamespacePath=/run/netns/test-execute-netns