Ok, it turned out that
* this code has been removed from mainstream, it's safely substituted by
kmemleak
* not all code which appears to be under NETNS_REFCNT_DEBUG ifdef is from
mainstream:
net_access_allowed() function got there by chance during rebase pcs6 -> vz7
========================================================
Subject: net: Show all connections in init namespace
Date: Sat, 26 Nov 2011 14:17:32 +0400
Introduce a function that returns true when net namespaces are equal or
current current net namespace is init one and use it allover the socket
showing functions.
http://bugzilla.openvz.org/show_bug.cgi?id=2061
========================================================
So please move net_access_allowed() out of unused ifdef and check if netstat
works fine on the Host,
i mean shows connections for all Containers.
--
Best regards,
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
On 11/24/2015 02:07 PM, Stanislav Kinsburskiy wrote:
This explicit check on network namespace usage on free was forgottent for
ages, or maybe it was never used.
This patch set ressurects it.
However:
1) There is no garantee, that corresponding code works as expected
2) This code was throwed away from upstream kernel in May 2015.
---
Stanislav Kinsburskiy (4):
init/Kconfig: NETNS_REFCNT_DEBUG option added
net_namespace.h: set NETNS_REFCNT_DEBUG if CONFIG_NETNS_REFCNT_DEBUG
net_namespace: taint kernel on free, if users exist
configs: adjust to reflect CONFIG_NETNS_REFCNT_DEBUG option
configs/kernel-3.10.0-x86_64-debug.config | 1 +
configs/kernel-3.10.0-x86_64.config | 1 +
include/net/net_namespace.h | 3 +++
init/Kconfig | 7 +++++++
net/core/net_namespace.c | 1 +
5 files changed, 13 insertions(+)
--
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel