HALF ECHO LEARN / REFERENCE COLLECTION
v262.2test/test-execute/exec-networknamespacepath-privatemounts-no.service
Git blob: 4aad58eb69d72f77b999b38ddba0ef2e8a28fd85
Lines 1–17 of 17
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for NetworkNamespacePath= without mount namespacing
[Service]
ExecStart=bash -x -c '! ip link show dummy-test-exec'
ExecStart=bash -x -c 'test ! -e /proc/sys/net/ipv4/conf/dummy-test-exec'
# Without mount namespacing, we can access the dummy-test-exec interface through sysfs.
ExecStart=bash -x -c 'test -e /sys/class/net/dummy-test-exec'
ExecStart=bash -x -c 'ip link show dummy-test-ns'
ExecStart=bash -x -c 'test -e /proc/sys/net/ipv4/conf/dummy-test-ns'
# Without mount namespacing, we cannot access the dummy-test-ns interface through sysfs.
ExecStart=bash -x -c 'test ! -e /sys/class/net/dummy-test-ns'
Type=oneshot
NetworkNamespacePath=/run/netns/test-execute-netns
PrivateMounts=no