From 31a78ecc78a43ec23db16863906fa58c7a8cd6aa Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 2 Feb 2016 09:46:00 +0000 Subject: [PATCH] Fix reading of network namespace inodes --- probe/endpoint/procspy/proc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/endpoint/procspy/proc.go b/probe/endpoint/procspy/proc.go index bfbe3e1622..39e9af2758 100644 --- a/probe/endpoint/procspy/proc.go +++ b/probe/endpoint/procspy/proc.go @@ -44,7 +44,7 @@ func walkProcPid(buf *bytes.Buffer, walker process.Walker, namespaceTicker <-cha walker.Walk(func(p, _ process.Process) { dirName := strconv.Itoa(p.PID) - if err := fs.Lstat(filepath.Join(procRoot, dirName, "/ns/net"), &statT); err != nil { + if err := fs.Stat(filepath.Join(procRoot, dirName, "/ns/net"), &statT); err != nil { return }