| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
[Unit] |
| 3 |
Description=Test for NetworkNamespacePath= without mount namespacing |
| 4 |
|
| 5 |
[Service] |
| 6 |
ExecStart=bash -x -c '! ip link show dummy-test-exec' |
| 7 |
ExecStart=bash -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=bash -x -c 'test -e /sys/class/net/dummy-test-exec' |
| 10 |
ExecStart=bash -x -c 'ip link show dummy-test-ns' |
| 11 |
ExecStart=bash -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=bash -x -c 'test ! -e /sys/class/net/dummy-test-ns' |
| 14 |
Type=oneshot |
| 15 |
NetworkNamespacePath=/run/netns/test-execute-netns |
| 16 |
PrivateMounts=no |