test-execute: allow sit0@ to exist in private network namespace

It's always visible:

$ sudo modprobe sit
$ sudo unshare -n ip l
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    ...
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    ...
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-03-22 08:50:10 +01:00
parent c725631f4b
commit 6b08180ca6
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,6 @@
Description=Test for PrivateNetwork
[Service]
ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -v ": lo:"'
ExecStart=/bin/sh -x -c '! ip link | grep ": " | grep -Ev ": (lo|sit0@.*):"'
Type=oneshot
PrivateNetwork=yes