pkg/ns: fixed the check for network namespace path.
authorAvinash Sridharan <avinash@mesosphere.io>
Wed, 24 Aug 2016 23:49:50 +0000 (23:49 +0000)
committerAvinash Sridharan <avinash@mesosphere.io>
Wed, 31 Aug 2016 21:41:00 +0000 (21:41 +0000)
commit7281d5792a05c537d79d35fc8e9ff7bfdb62d348
tree8965b300312e60bf587938dab9e513b0009b9841
parent5c3c17164270150467498a32c71436c7cd5501be
pkg/ns: fixed the check for network namespace path.

The expectation on older kernels (< 3.19) was to have the network
namespace always be a directory. This is not true if the network
namespace is bind mounted to a file, and will make the plugin fail
erroneously in such cases. The fix is to remove this assumption
completely and just do a basic check on the file system types being
returned.

Fixes #288
pkg/ns/ns.go