Thread (3 messages) 3 messages, 3 authors, 2016-09-21

Re: [PATCH iproute2] ipmonitor: fix ip monitor can't work when NET_NS is not enabled

flat view

From: Nicolas Dichtel <hidden>
Date: 2016-09-20 11:53:59

Le 20/09/2016 à 11:09, Liping Zhang a écrit :
From: Liping Zhang <redacted>

In ip monitor, netns_map_init will check getnsid is supported or not.
But when /proc/self/ns/net does not exist, we just print out error
messages and exit. So user cannot use ip monitor anymore when
CONFIG_NET_NS is disabled:
  # ip monitor
  open("/proc/self/ns/net"): No such file or directory

If open "/proc/self/ns/net" failed, set have_rtnl_getnsid to false.

Fixes: d652ccbf8195 ("netns: allow to dump and monitor nsid")
Signed-off-by: Liping Zhang <redacted>
Acked-by: Nicolas Dichtel <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help