]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-networknamespacepath-privatemounts-no.service
Merge pull request #30844 from keszybz/rename-uid-alloc-range
[thirdparty/systemd.git] / test / test-execute / exec-networknamespacepath-privatemounts-no.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test for NetworkNamespacePath= without mount namespacing
4
5 [Service]
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'
14 Type=oneshot
15 NetworkNamespacePath=/run/netns/test-execute-netns
16 PrivateMounts=no