2021-10-17 16:07:22 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2015-10-30 12:51:51 +00:00
|
|
|
[Unit]
|
2023-02-17 05:26:29 +00:00
|
|
|
Description=Test for PrivateNetwork= without mount namespacing
|
2015-10-30 12:51:51 +00:00
|
|
|
|
|
|
|
[Service]
|
2024-01-04 14:24:52 +00:00
|
|
|
ExecStart=sh -x -c '! ip link show dummy-test-exec'
|
|
|
|
ExecStart=sh -x -c 'test ! -e /proc/sys/net/ipv4/conf/dummy-test-exec'
|
2023-02-17 05:26:29 +00:00
|
|
|
# Without mount namespacing, we can access the dummy-test-exec interface through sysfs
|
2024-01-04 14:24:52 +00:00
|
|
|
ExecStart=sh -x -c 'test -d /sys/class/net/dummy-test-exec'
|
2015-11-08 18:19:45 +00:00
|
|
|
Type=oneshot
|
2015-10-30 12:51:51 +00:00
|
|
|
PrivateNetwork=yes
|
2023-02-17 05:26:29 +00:00
|
|
|
PrivateMounts=no
|