diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-08-09 18:20:11 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-08-09 18:20:11 +0200 |
| commit | c576290a354d07b1507bda1c36e81c8d6d481f6d (patch) | |
| tree | 1d74a0687c3480f86e7627b470cf9295af1a48f7 /pkg/host/host_linux.go | |
| parent | 1ecb069f0e95a740181fb7fc7b89ae79ce11ae58 (diff) | |
pkg/host: fix linux netdevices detection
We don't use ip command for netdevices and tun setup.
Diffstat (limited to 'pkg/host/host_linux.go')
| -rw-r--r-- | pkg/host/host_linux.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go index 54a4f093c..25da4b016 100644 --- a/pkg/host/host_linux.go +++ b/pkg/host/host_linux.go @@ -8,7 +8,6 @@ import ( "fmt" "io/ioutil" "os" - "os/exec" "regexp" "runtime" "strconv" @@ -395,7 +394,7 @@ func init() { checkFeature[FeatureFaultInjection] = checkFaultInjection checkFeature[FeatureLeakChecking] = checkLeakChecking checkFeature[FeatureNetworkInjection] = checkNetworkInjection - checkFeature[FeatureNetworkDevices] = checkNetworkDevices + checkFeature[FeatureNetworkDevices] = unconditionallyEnabled } func checkCoverage() string { @@ -541,7 +540,7 @@ func checkNetworkInjection() string { if err := osutil.IsAccessible("/dev/net/tun"); err != nil { return err.Error() } - return checkNetworkDevices() + return "" } func checkUSBInjection() string { @@ -551,13 +550,6 @@ func checkUSBInjection() string { return "" } -func checkNetworkDevices() string { - if _, err := exec.LookPath("ip"); err != nil { - return "ip command is not found" - } - return "" -} - func checkDebugFS() string { if err := osutil.IsAccessible("/sys/kernel/debug"); err != nil { return "debugfs is not enabled or not mounted" |
