| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
[Unit] |
| 3 |
Description=Test for PrivateNetwork= with 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 |
# With mount namespacing, we cannot access the dummy-test-exec interface through sysfs. |
| 9 |
ExecStart=bash -x -c 'test ! -e /sys/class/net/dummy-test-exec' |
| 10 |
Type=oneshot |
| 11 |
PrivateNetwork=yes |
| 12 |
# PrivateNetwork=yes implies PrivateMounts=yes |