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)
commit1ce5e54e998046687f0c1056cefd720126e40e23
treefa9605ed3165842c461b00f3fa637233d4511a51
parent3a4124d257f32e8b1bc770c9806bf68a84afc8d2
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
ns/ns.go